mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
Show ensemble details in Obs.details as standard case
This commit is contained in:
parent
c11b3ee08d
commit
f643503d7c
2 changed files with 2 additions and 2 deletions
|
@ -382,7 +382,7 @@ class Obs:
|
||||||
warnings.warn("Method 'print' renamed to 'details'", DeprecationWarning)
|
warnings.warn("Method 'print' renamed to 'details'", DeprecationWarning)
|
||||||
self.details(level > 1)
|
self.details(level > 1)
|
||||||
|
|
||||||
def details(self, ens_content=False):
|
def details(self, ens_content=True):
|
||||||
"""Output detailed properties of the Obs."""
|
"""Output detailed properties of the Obs."""
|
||||||
if self.value == 0.0:
|
if self.value == 0.0:
|
||||||
percentage = np.nan
|
percentage = np.nan
|
||||||
|
|
|
@ -224,7 +224,7 @@ def test_overloaded_functions():
|
||||||
def test_utils():
|
def test_utils():
|
||||||
my_obs = pe.pseudo_Obs(1.0, 0.5, 't')
|
my_obs = pe.pseudo_Obs(1.0, 0.5, 't')
|
||||||
my_obs.tag = "Test descrption"
|
my_obs.tag = "Test descrption"
|
||||||
my_obs.details()
|
my_obs.details(False)
|
||||||
my_obs.details(True)
|
my_obs.details(True)
|
||||||
assert not my_obs.is_zero_within_error()
|
assert not my_obs.is_zero_within_error()
|
||||||
my_obs.plot_tauint()
|
my_obs.plot_tauint()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue