mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-16 04:23:41 +02:00
added special case for tau_exp error analysis and less than 8 samples
This commit is contained in:
parent
2ba4e74760
commit
db94a49d76
1 changed files with 2 additions and 0 deletions
|
@ -264,6 +264,8 @@ class Obs:
|
||||||
# if type(self.idl[e_name]) is range: # scale tau_exp according to step size
|
# if type(self.idl[e_name]) is range: # scale tau_exp according to step size
|
||||||
# texp /= self.idl[e_name].step
|
# texp /= self.idl[e_name].step
|
||||||
# Critical slowing down analysis
|
# 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):
|
for n in range(1, w_max // 2):
|
||||||
_compute_drho(n + 1)
|
_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:
|
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue