From ece3c09d235c734330657ba6c532b9c7a0f4d612 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 5 Nov 2021 12:36:38 +0000 Subject: [PATCH] test correlate for correct idl propagation --- tests/pyerrors_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/pyerrors_test.py b/tests/pyerrors_test.py index 4171dfe2..6d8909b5 100644 --- a/tests/pyerrors_test.py +++ b/tests/pyerrors_test.py @@ -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']),