added special case for tau_exp error analysis and less than 8 samples

This commit is contained in:
Fabian Joswig 2021-11-12 15:13:50 +00:00
parent 2ba4e74760
commit db94a49d76

View file

@ -264,6 +264,8 @@ class Obs:
# if type(self.idl[e_name]) is range: # scale tau_exp according to step size
# texp /= self.idl[e_name].step
# Critical slowing down analysis
if w_max // 2 <= 1:
raise Exception("Need at least 8 samples for tau_exp error analysis")
for n in range(1, w_max // 2):
_compute_drho(n + 1)
if (self.e_rho[e_name][n] - self.N_sigma[e_name] * self.e_drho[e_name][n]) < 0 or n >= w_max // 2 - 2: