fix: split meson on last underscore in read_meson_hdf5. (#204)

This commit is contained in:
Fabian Joswig 2023-07-18 10:36:19 +01:00 committed by GitHub
parent ad188acec4
commit 491c7bcb04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ def read_meson_hd5(path, filestem, ens_id, meson='meson_0', idl=None, gammas=Non
files, idx = _get_files(path, filestem, idl)
tree = meson.rsplit('_')[0]
tree = meson.rsplit('_', 1)[0]
if gammas is not None:
h5file = h5py.File(path + '/' + files[0], "r")
found_meson = None