mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
feat: input.hadrons.read_meson_hd5 file access optimized.
This commit is contained in:
parent
9d4e1b9645
commit
36001b2159
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ def read_meson_hd5(path, filestem, ens_id, meson='meson_0', idl=None):
|
|||
h5file = h5py.File(path + '/' + hd5_file, "r")
|
||||
if not tree + '/' + meson in h5file:
|
||||
raise Exception("Entry '" + meson + "' not contained in the files.")
|
||||
raw_data = list(h5file[tree + '/' + meson + '/corr'])
|
||||
real_data = [o[0] for o in raw_data]
|
||||
raw_data = h5file[tree + '/' + meson + '/corr']
|
||||
real_data = raw_data[:]["re"].astype(np.double)
|
||||
corr_data.append(real_data)
|
||||
if not infos:
|
||||
for k, i in h5file[tree + '/' + meson].attrs.items():
|
||||
|
|
Loading…
Add table
Reference in a new issue