Another test for the multi ensemble system added

This commit is contained in:
Fabian Joswig 2021-11-05 15:05:20 +00:00
parent 2cf648a57e
commit 68eaaadfc7
2 changed files with 17 additions and 1 deletions

View file

@ -407,7 +407,7 @@ class Obs:
else:
print(self.N, 'samples in', len(self.e_names), 'ensembles:')
m = max(map(len, list(self.e_content.keys()))) + 1
print('\n'.join([' ' + key.rjust(m) + ': ' + str([o[len(key):] for o in value]) for key, value in sorted(self.e_content.items())]))
print('\n'.join([' ' + key.rjust(m) + ': ' + str(value) for key, value in sorted(self.e_content.items())]))
def is_zero_within_error(self, sigma=1):
"""Checks whether the observable is zero within 'sigma' standard errors.