From 5d0d56596f7680e2df084dbee9bff9d5238b732f Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Wed, 5 Jan 2022 20:08:08 +0100 Subject: [PATCH] refactor: redundant tree parameter removed from input/hadrons/read_meson_hd5 --- pyerrors/input/hadrons.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyerrors/input/hadrons.py b/pyerrors/input/hadrons.py index efe4feb1..92e4bc40 100644 --- a/pyerrors/input/hadrons.py +++ b/pyerrors/input/hadrons.py @@ -58,16 +58,13 @@ def read_meson_hd5(path, filestem, ens_id, meson='meson_0', tree='meson', idl=No meson : str label of the meson to be extracted, standard value meson_0 which corresponds to the pseudoscalar pseudoscalar two-point function. - tree : str - Label of the upmost directory in the hdf5 file, default 'meson' - for outputs of the Meson module. Can be altered to read input - from other modules with similar structures. idl : range If specified only configurations in the given range are read in. """ files, idx = _get_files(path, filestem, idl) + tree = meson.rsplit('_')[0] corr_data = [] infos = [] for hd5_file in files: