mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 23:00:25 +01:00
Bug in gamma_method fixed
This commit is contained in:
parent
f395cb3d88
commit
f24451090a
2 changed files with 4 additions and 4 deletions
|
@ -143,9 +143,9 @@ def read_Bilinear_hd5(path, filestem, ens_id, order='F'):
|
||||||
else:
|
else:
|
||||||
mom_in = np.array(str(file['Bilinear/Bilinear_' + str(i) + '/info'].attrs['pIn'])[3:-2].strip().split(' '), dtype=int)
|
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:
|
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:
|
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()
|
file.close()
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ class Obs:
|
||||||
ensemble.
|
ensemble.
|
||||||
N_sigma_global -- Standard value for N_sigma (default 1.0)
|
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',
|
# 'ddvalue', 'reweighted', 'S', 'tau_exp', 'N_sigma', 'e_names',
|
||||||
# 'e_content', 'e_dvalue', 'e_ddvalue', 'e_tauint', 'e_dtauint',
|
# 'e_content', 'e_dvalue', 'e_ddvalue', 'e_tauint', 'e_dtauint',
|
||||||
# 'e_windowsize', 'e_rho', 'e_drho', 'e_n_tauint', 'e_n_dtauint',
|
# 'e_windowsize', 'e_rho', 'e_drho', 'e_n_tauint', 'e_n_dtauint',
|
||||||
|
@ -152,7 +152,7 @@ class Obs:
|
||||||
self.e_rho = {}
|
self.e_rho = {}
|
||||||
self.e_drho = {}
|
self.e_drho = {}
|
||||||
self._dvalue = 0
|
self._dvalue = 0
|
||||||
self._ddvalue = 0
|
self.ddvalue = 0
|
||||||
|
|
||||||
self.S = {}
|
self.S = {}
|
||||||
self.tau_exp = {}
|
self.tau_exp = {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue