diff --git a/pyhdx/batch_processing.py b/pyhdx/batch_processing.py index 41257948..650a337f 100644 --- a/pyhdx/batch_processing.py +++ b/pyhdx/batch_processing.py @@ -52,7 +52,7 @@ def load_data(self, *filenames: os.PathLike, reader='dynamx') -> pd.DataFrame: input_files = [self.data_src / filename for filename in filenames] df = read_func(*input_files) else: - input_stringios = [self.data_src[filename] for filename in filenames] + input_stringios = [self.data_src[Path(filename).name] for filename in filenames] df = read_func(*input_stringios) for io in input_stringios: io.seek(0)