From c9a03c3de0c6d7dece5cba087f5c24202a756b72 Mon Sep 17 00:00:00 2001 From: samncorn Date: Thu, 29 Feb 2024 13:06:08 -0600 Subject: [PATCH] fixed test to account for change --- tests/sorcha/test_PPTrailingLoss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/sorcha/test_PPTrailingLoss.py b/tests/sorcha/test_PPTrailingLoss.py index 8f0d1724..39c92fc8 100644 --- a/tests/sorcha/test_PPTrailingLoss.py +++ b/tests/sorcha/test_PPTrailingLoss.py @@ -67,6 +67,9 @@ def test_PPTrailingLoss(): } ) + # add cos dec term + testoifdf[ "AstRARate(deg/day)" ] *= np.cos( testoifdf["AstDec(deg)"] * np.pi/180.0 ) + np.testing.assert_array_almost_equal(0.25893924959480374, PPTrailingLoss(oif_df=testoifdf)[5], decimal=14) # Check that we give an error for an unknown model.