mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
Additional tests for exceptional cases of correlate added
This commit is contained in:
parent
aabac9d430
commit
6d8bce8755
1 changed files with 8 additions and 0 deletions
|
@ -297,6 +297,14 @@ def test_correlate():
|
|||
corr2 = pe.correlate(my_obs2, my_obs1)
|
||||
assert corr1 == corr2
|
||||
|
||||
my_obs3 = pe.Obs([np.random.rand(100)], ['t'], idl=[range(2, 102)])
|
||||
with pytest.raises(Exception):
|
||||
pe.correlate(my_obs1, my_obs3)
|
||||
|
||||
my_obs4 = pe.Obs([np.random.rand(99)], ['t'])
|
||||
with pytest.raises(Exception):
|
||||
pe.correlate(my_obs1, my_obs4)
|
||||
|
||||
|
||||
def test_irregular_error_propagation():
|
||||
obs_list = [pe.Obs([np.random.rand(100)], ['t']),
|
||||
|
|
Loading…
Add table
Reference in a new issue