mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
test correlate for correct idl propagation
This commit is contained in:
parent
59b916213e
commit
ece3c09d23
1 changed files with 5 additions and 0 deletions
|
@ -305,6 +305,11 @@ def test_correlate():
|
|||
with pytest.raises(Exception):
|
||||
pe.correlate(my_obs1, my_obs4)
|
||||
|
||||
my_obs5 = pe.Obs([np.random.rand(100)], ['t'], idl=[range(5, 505, 5)])
|
||||
my_obs6 = pe.Obs([np.random.rand(100)], ['t'], idl=[range(5, 505, 5)])
|
||||
corr3 = pe.correlate(my_obs5, my_obs6)
|
||||
assert my_obs5.idl == corr3.idl
|
||||
|
||||
|
||||
def test_irregular_error_propagation():
|
||||
obs_list = [pe.Obs([np.random.rand(100)], ['t']),
|
||||
|
|
Loading…
Add table
Reference in a new issue