[fix] fixed how the filestem is extracted in hadrons/read_hdf5. (#218)

This commit is contained in:
Fabian Joswig 2023-11-23 13:34:07 +01:00 committed by GitHub
parent fb17a46eb9
commit 728c2e55ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ def read_hd5(filestem, ens_id, group, attrs=None, idl=None, part="real"):
path_obj = Path(filestem) path_obj = Path(filestem)
path = path_obj.parent.as_posix() path = path_obj.parent.as_posix()
filestem = path_obj.stem filestem = path_obj.name
files, idx = _get_files(path, filestem, idl) files, idx = _get_files(path, filestem, idl)