__slots__ added to Obs to reduce the memory footprint of individual

objects and slightly speed up the initialisation of an object
This commit is contained in:
Fabian Joswig 2021-10-18 10:28:08 +01:00
parent 4edea2c3a8
commit 4f7b5d23ae

View file

@ -35,6 +35,10 @@ class Obs:
ensemble.
N_sigma_global -- Standard value for N_sigma (default 1.0)
"""
__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']
e_tag_global = 0
S_global = 2.0