From 686e85ec3f15fd40905379972e05fdc7d921b526 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 29 Oct 2021 15:56:18 +0100 Subject: [PATCH] additional test for irregular obs added --- tests/pyerrors_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pyerrors_test.py b/tests/pyerrors_test.py index 38db1517..35c3d0c1 100644 --- a/tests/pyerrors_test.py +++ b/tests/pyerrors_test.py @@ -282,6 +282,10 @@ def test_irregular_error_propagation(): assert regular_obs == (regular_obs / irregular_obs) * irregular_obs assert regular_obs == (regular_obs + irregular_obs) - irregular_obs + irregular_obs = pe.Obs([np.random.rand(500)], ['t'], idl=[np.arange(1, 1000, 2)]) + assert regular_obs == (regular_obs / irregular_obs) * irregular_obs + assert regular_obs == (regular_obs + irregular_obs) - irregular_obs + irregular_obs = pe.Obs([np.random.rand(6)], ['t'], idl=[[4, 18, 27, 29, 57, 80]]) assert regular_obs == (regular_obs / irregular_obs) * irregular_obs assert regular_obs == (regular_obs + irregular_obs) - irregular_obs