From 8bc204fc31e90809841c351af905d18b9f057fae Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Sun, 26 Feb 2023 18:56:46 +0000 Subject: [PATCH] tests: nan obs test added. --- tests/obs_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/obs_test.py b/tests/obs_test.py index 0a62bab1..3f65ecee 100644 --- a/tests/obs_test.py +++ b/tests/obs_test.py @@ -1146,3 +1146,9 @@ def test_non_overlapping_operations_different_lengths(): assert np.isclose(res1.value, res2.value) assert np.isclose(res1.dvalue, res2.dvalue, rtol=0.01) + + +def test_nan_obs(): + o = pe.pseudo_Obs(1, .1, 'test') + no = np.nan * o + no.gamma_method()