From 491c7bcb0452cb4b0355fd44d6bca941bec86718 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 18 Jul 2023 10:36:19 +0100 Subject: [PATCH] fix: split meson on last underscore in read_meson_hdf5. (#204) --- pyerrors/input/hadrons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/input/hadrons.py b/pyerrors/input/hadrons.py index 0a80f122..24e86c6d 100644 --- a/pyerrors/input/hadrons.py +++ b/pyerrors/input/hadrons.py @@ -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