mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-07-01 17:29:27 +02:00
New method is_zero
This commit is contained in:
parent
573d4992c9
commit
10b228d434
3 changed files with 6 additions and 3 deletions
|
@ -341,9 +341,12 @@ class Obs:
|
|||
for e_name in self.e_names:
|
||||
print(e_name, ':', self.e_content[e_name])
|
||||
|
||||
def zero_within_error(self):
|
||||
def is_zero_within_error(self):
|
||||
return np.abs(self.value) <= self.dvalue
|
||||
|
||||
def is_zero(self):
|
||||
np.isclose(0.0, self.value) and all(np.allclose(0.0, delta) for delta in self.deltas.values())
|
||||
|
||||
def plot_tauint(self, save=None):
|
||||
"""Plot integrated autocorrelation time for each ensemble."""
|
||||
if not self.e_names:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue