Skip to content

Commit

Permalink
fix: split meson on last underscore in read_meson_hdf5. (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjosw committed Jul 18, 2023
1 parent ad188ac commit 491c7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyerrors/input/hadrons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 491c7bc

Please sign in to comment.