mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
test: test for empty Obs added
This commit is contained in:
parent
5f2e33ccda
commit
7c9dc662e6
1 changed files with 6 additions and 0 deletions
|
@ -586,6 +586,12 @@ def test_covariance2_symmetry():
|
|||
assert np.abs(cov_ab) < test_obs1.dvalue * test_obs2.dvalue * (1 + 10 * np.finfo(np.float64).eps)
|
||||
|
||||
|
||||
def test_empty_obs():
|
||||
o = pe.Obs([np.random.rand(100)], ['test'])
|
||||
q = o + pe.Obs([], [])
|
||||
assert q == o
|
||||
|
||||
|
||||
def test_jackknife():
|
||||
full_data = np.random.normal(1.1, 0.87, 5487)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue