Skip to content

Commit 7613e6b

Browse files
committed
tests pass again
1 parent 50b2bf2 commit 7613e6b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/estimation_tests/test_ipcw_estimator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class TestIPCWEstimator(unittest.TestCase):
1515

1616
def test_estimate_hazard_ratio(self):
1717
timesteps_per_intervention = 1
18-
control_strategy = [(t, "t", 0) for t in range(1, 4, timesteps_per_intervention)]
19-
treatment_strategy = [(t, "t", 1) for t in range(1, 4, timesteps_per_intervention)]
18+
control_strategy = [[t, "t", 0] for t in range(1, 4, timesteps_per_intervention)]
19+
treatment_strategy = [[t, "t", 1] for t in range(1, 4, timesteps_per_intervention)]
2020
outcome = "outcome"
2121
fit_bl_switch_formula = "xo_t_do ~ time"
2222
df = pd.read_csv("tests/resources/data/temporal_data.csv")
@@ -37,8 +37,8 @@ def test_estimate_hazard_ratio(self):
3737

3838
def test_invalid_treatment_strategies(self):
3939
timesteps_per_intervention = 1
40-
control_strategy = [(t, "t", 0) for t in range(1, 4, timesteps_per_intervention)]
41-
treatment_strategy = [(t, "t", 1) for t in range(1, 4, timesteps_per_intervention)]
40+
control_strategy = [[t, "t", 0] for t in range(1, 4, timesteps_per_intervention)]
41+
treatment_strategy = [[t, "t", 1] for t in range(1, 4, timesteps_per_intervention)]
4242
outcome = "outcome"
4343
fit_bl_switch_formula = "xo_t_do ~ time"
4444
df = pd.read_csv("tests/resources/data/temporal_data.csv")
@@ -59,8 +59,8 @@ def test_invalid_treatment_strategies(self):
5959

6060
def test_invalid_fault_t_do(self):
6161
timesteps_per_intervention = 1
62-
control_strategy = [(t, "t", 0) for t in range(1, 4, timesteps_per_intervention)]
63-
treatment_strategy = [(t, "t", 1) for t in range(1, 4, timesteps_per_intervention)]
62+
control_strategy = [[t, "t", 0] for t in range(1, 4, timesteps_per_intervention)]
63+
treatment_strategy = [[t, "t", 1] for t in range(1, 4, timesteps_per_intervention)]
6464
outcome = "outcome"
6565
fit_bl_switch_formula = "xo_t_do ~ time"
6666
df = pd.read_csv("tests/resources/data/temporal_data.csv")

tests/testing_tests/test_causal_test_adequacy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def test_data_adequacy_cateogorical(self):
111111

112112
def test_data_adequacy_group_by(self):
113113
timesteps_per_intervention = 1
114-
control_strategy = [(t, "t", 0) for t in range(1, 4, timesteps_per_intervention)]
115-
treatment_strategy = [(t, "t", 1) for t in range(1, 4, timesteps_per_intervention)]
114+
control_strategy = [[t, "t", 0] for t in range(1, 4, timesteps_per_intervention)]
115+
treatment_strategy = [[t, "t", 1] for t in range(1, 4, timesteps_per_intervention)]
116116
outcome = "outcome"
117117
fit_bl_switch_formula = "xo_t_do ~ time"
118118
df = pd.read_csv("tests/resources/data/temporal_data.csv")

0 commit comments

Comments
 (0)