mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
refactor!: if clause in Obs.__init__ eliminated, empty observables need
to be initialized with means=[] from now on.
This commit is contained in:
parent
42df254288
commit
498a251072
3 changed files with 38 additions and 39 deletions
|
@ -653,7 +653,7 @@ def test_covariance_symmetry():
|
|||
|
||||
def test_empty_obs():
|
||||
o = pe.Obs([np.random.rand(100)], ['test'])
|
||||
q = o + pe.Obs([], [])
|
||||
q = o + pe.Obs([], [], means=[])
|
||||
assert q == o
|
||||
|
||||
|
||||
|
@ -704,4 +704,4 @@ def test_merge_idx():
|
|||
new_idx = pe.obs._merge_idx(idl)
|
||||
assert(new_idx[-1] > new_idx[0])
|
||||
for i in range(1, len(new_idx)):
|
||||
assert(new_idx[i - 1] < new_idx[i])
|
||||
assert(new_idx[i - 1] < new_idx[i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue