diff --git a/pyerrors/input/hadrons.py b/pyerrors/input/hadrons.py index 2e9b52d4..b5229f8a 100644 --- a/pyerrors/input/hadrons.py +++ b/pyerrors/input/hadrons.py @@ -143,9 +143,9 @@ def read_Bilinear_hd5(path, filestem, ens_id, order='F'): else: mom_in = np.array(str(file['Bilinear/Bilinear_' + str(i) + '/info'].attrs['pIn'])[3:-2].strip().split(' '), dtype=int) if mom_out is not None: - assert np.allclose(mom_out, np.array(str(file['Bilinear/Bilinear_' + str(i) + '/info'].attrs['pIn'])[3:-2].strip().split(' '), dtype=int)) + assert np.allclose(mom_out, np.array(str(file['Bilinear/Bilinear_' + str(i) + '/info'].attrs['pOut'])[3:-2].strip().split(' '), dtype=int)) else: - mom_out = np.array(str(file['Bilinear/Bilinear_' + str(i) + '/info'].attrs['pIn'])[3:-2].strip().split(' '), dtype=int) + mom_out = np.array(str(file['Bilinear/Bilinear_' + str(i) + '/info'].attrs['pOut'])[3:-2].strip().split(' '), dtype=int) file.close() diff --git a/pyerrors/pyerrors.py b/pyerrors/pyerrors.py index 1c8699a0..9e8388e9 100644 --- a/pyerrors/pyerrors.py +++ b/pyerrors/pyerrors.py @@ -34,7 +34,7 @@ class Obs: ensemble. N_sigma_global -- Standard value for N_sigma (default 1.0) """ - # __slots__ = ['names', 'shape', 'r_values', 'deltas', 'N', 'value', 'dvalue', + # __slots__ = ['names', 'shape', 'r_values', 'deltas', 'N', '_value', '_dvalue', # 'ddvalue', 'reweighted', 'S', 'tau_exp', 'N_sigma', 'e_names', # 'e_content', 'e_dvalue', 'e_ddvalue', 'e_tauint', 'e_dtauint', # 'e_windowsize', 'e_rho', 'e_drho', 'e_n_tauint', 'e_n_dtauint', @@ -152,7 +152,7 @@ class Obs: self.e_rho = {} self.e_drho = {} self._dvalue = 0 - self._ddvalue = 0 + self.ddvalue = 0 self.S = {} self.tau_exp = {}