further docstrings updated

This commit is contained in:
Fabian Joswig 2021-11-12 14:25:51 +00:00
parent 56e1425835
commit b90caa4cdc
2 changed files with 19 additions and 10 deletions

View file

@ -333,10 +333,6 @@ class Obs:
return gamma
def print(self, level=1):
warnings.warn("Method 'print' renamed to 'details'", DeprecationWarning)
self.details(level > 1)
def details(self, ens_content=True):
"""Output detailed properties of the Obs.
@ -370,6 +366,10 @@ class Obs:
m = max(map(len, list(self.e_content.keys()))) + 1
print('\n'.join([' ' + key.rjust(m) + ': ' + str(value) for key, value in sorted(self.e_content.items())]))
def print(self, level=1):
warnings.warn("Method 'print' renamed to 'details'", DeprecationWarning)
self.details(level > 1)
def is_zero_within_error(self, sigma=1):
"""Checks whether the observable is zero within 'sigma' standard errors.