mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
output of ensemble content improved
This commit is contained in:
parent
f643503d7c
commit
2cf648a57e
1 changed files with 2 additions and 2 deletions
|
@ -406,8 +406,8 @@ class Obs:
|
|||
print(self.N, 'samples in', len(self.e_names), 'ensemble:')
|
||||
else:
|
||||
print(self.N, 'samples in', len(self.e_names), 'ensembles:')
|
||||
for e_name in self.e_names:
|
||||
print(' ', e_name, ':', self.e_content[e_name])
|
||||
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())]))
|
||||
|
||||
def is_zero_within_error(self, sigma=1):
|
||||
"""Checks whether the observable is zero within 'sigma' standard errors.
|
||||
|
|
Loading…
Add table
Reference in a new issue