@@ -151,7 +151,7 @@ def test_Negative_fail_ci(self):
151
151
ctr = CausalTestResult (
152
152
estimator = self .estimator ,
153
153
test_value = test_value ,
154
- confidence_intervals = [- 1 , 1 ],
154
+ confidence_intervals = [pd . Series ( - 1 ), pd . Series ( 1 ) ],
155
155
effect_modifier_configuration = None ,
156
156
)
157
157
ev = Negative ()
@@ -173,7 +173,7 @@ def test_exactValue_pass_ci(self):
173
173
ctr = CausalTestResult (
174
174
estimator = self .estimator ,
175
175
test_value = test_value ,
176
- confidence_intervals = [4 , 6 ],
176
+ confidence_intervals = [pd . Series ( 4 ), pd . Series ( 6 ) ],
177
177
effect_modifier_configuration = None ,
178
178
)
179
179
ev = ExactValue (5 , 0.1 )
@@ -199,7 +199,7 @@ def test_invalid(self):
199
199
ctr = CausalTestResult (
200
200
estimator = self .estimator ,
201
201
test_value = test_value ,
202
- confidence_intervals = [4.8 , 6.7 ],
202
+ confidence_intervals = [pd . Series ( 4.8 ), pd . Series ( 6.7 ) ],
203
203
effect_modifier_configuration = None ,
204
204
)
205
205
with self .assertRaises (ValueError ):
@@ -216,7 +216,7 @@ def test_someEffect_pass_coefficient(self):
216
216
ctr = CausalTestResult (
217
217
estimator = self .estimator ,
218
218
test_value = test_value ,
219
- confidence_intervals = [4.8 , 6.7 ],
219
+ confidence_intervals = [pd . Series ( 4.8 ), pd . Series ( 6.7 ) ],
220
220
effect_modifier_configuration = None ,
221
221
)
222
222
self .assertTrue (SomeEffect ().apply (ctr ))
@@ -227,7 +227,7 @@ def test_someEffect_pass_ate(self):
227
227
ctr = CausalTestResult (
228
228
estimator = self .estimator ,
229
229
test_value = test_value ,
230
- confidence_intervals = [4.8 , 6.7 ],
230
+ confidence_intervals = [pd . Series ( 4.8 ), pd . Series ( 6.7 ) ],
231
231
effect_modifier_configuration = None ,
232
232
)
233
233
self .assertTrue (SomeEffect ().apply (ctr ))
@@ -238,7 +238,7 @@ def test_someEffect_pass_rr(self):
238
238
ctr = CausalTestResult (
239
239
estimator = self .estimator ,
240
240
test_value = test_value ,
241
- confidence_intervals = [4.8 , 6.7 ],
241
+ confidence_intervals = [pd . Series ( 4.8 ), pd . Series ( 6.7 ) ],
242
242
effect_modifier_configuration = None ,
243
243
)
244
244
self .assertTrue (SomeEffect ().apply (ctr ))
@@ -249,7 +249,7 @@ def test_someEffect_fail(self):
249
249
ctr = CausalTestResult (
250
250
estimator = self .estimator ,
251
251
test_value = test_value ,
252
- confidence_intervals = [- 0.1 , 0.2 ],
252
+ confidence_intervals = [pd . Series ( - 0.1 ), pd . Series ( 0.2 ) ],
253
253
effect_modifier_configuration = None ,
254
254
)
255
255
self .assertFalse (SomeEffect ().apply (ctr ))
@@ -260,7 +260,7 @@ def test_someEffect_str(self):
260
260
ctr = CausalTestResult (
261
261
estimator = self .estimator ,
262
262
test_value = test_value ,
263
- confidence_intervals = [- 0.1 , 0.2 ],
263
+ confidence_intervals = [pd . Series ( - 0.1 ), pd . Series ( 0.2 ) ],
264
264
effect_modifier_configuration = None ,
265
265
)
266
266
ev = SomeEffect ()
@@ -284,7 +284,7 @@ def test_someEffect_dict(self):
284
284
ctr = CausalTestResult (
285
285
estimator = self .estimator ,
286
286
test_value = test_value ,
287
- confidence_intervals = [- 0.1 , 0.2 ],
287
+ confidence_intervals = [pd . Series ( - 0.1 ), pd . Series ( 0.2 ) ],
288
288
effect_modifier_configuration = None ,
289
289
)
290
290
ev = SomeEffect ()
0 commit comments