From 22d8950502a604ebd712972e33d19a8053dff176 Mon Sep 17 00:00:00 2001 From: "Carl A. B. Pearson" Date: Wed, 13 Nov 2024 10:43:53 -0500 Subject: [PATCH] fix npi test --- .../tests/npi/test_SinglePeriodModifier.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/flepimop/gempyor_pkg/tests/npi/test_SinglePeriodModifier.py b/flepimop/gempyor_pkg/tests/npi/test_SinglePeriodModifier.py index 704949cfb..d8e029f7f 100644 --- a/flepimop/gempyor_pkg/tests/npi/test_SinglePeriodModifier.py +++ b/flepimop/gempyor_pkg/tests/npi/test_SinglePeriodModifier.py @@ -30,7 +30,8 @@ def test_SinglePeriodModifier_success(self): test = NPI.SinglePeriodModifier( npi_config=s.npi_config_seir, - modinf=s, + modinf_ti=s.ti, + modinf_tf=s.tf, modifiers_library="", subpops=s.subpop_struct.subpop_names, loaded_df=None, @@ -38,7 +39,7 @@ def test_SinglePeriodModifier_success(self): """ test2 = NPI.SinglePeriodModifier( npi_config=s.npi_config_seir, - modinf=s, + modinf_ti=s.ti, modinf_tf=s.tf, modifiers_library="", subpops=s.subpop_struct.subpop_names, loaded_df=test.parameters, @@ -64,7 +65,8 @@ def test_SinglePeriodModifier_start_date_fail(self): test = NPI.SinglePeriodModifier( npi_config=s.npi_config_seir, - modinf=s, + modinf_ti=s.ti, + modinf_tf=s.tf, modifiers_library="", subpops=s.subpop_struct.subpop_names, loaded_df=None, @@ -89,7 +91,8 @@ def test_SinglePeriodModifier_end_date_fail(self): test = NPI.SinglePeriodModifier( npi_config=s.npi_config_seir, - modinf=s, + modinf_ti=s.ti, + modinf_tf=s.tf, modifiers_library="", subpops=s.subpop_struct.subpop_names, loaded_df=None, @@ -110,7 +113,8 @@ def test_SinglePeriodModifier_checkerrors(self): test = NPI.SinglePeriodModifier( npi_config=s.npi_config_seir, - modinf=s, + modinf_ti=s.ti, + modinf_tf=s.tf, modifiers_library="", subpops=s.subpop_struct.subpop_names, loaded_df=None,