@@ -86,6 +86,7 @@ def _create_abstract_test_case(self, test, mutates, effects):
86
86
treatment_var .distribution = getattr (scipy .stats , dist )(** params )
87
87
self ._append_to_file (treatment_var .name + f" { dist } ({ params } )" , logging .INFO )
88
88
89
+ print ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" )
89
90
abstract_test = AbstractCausalTestCase (
90
91
scenario = self .scenario ,
91
92
intervention_constraints = [mutates [v ](k ) for k , v in test ["mutations" ].items ()],
@@ -186,24 +187,6 @@ def run_json_tests(self, effects: dict, estimators: dict, f_flag: bool = False,
186
187
)
187
188
self ._append_to_file (msg , logging .INFO )
188
189
189
- def _create_abstract_test_case (self , test , mutates , effects ):
190
- assert len (test ["mutations" ]) == 1
191
- abstract_test = AbstractCausalTestCase (
192
- scenario = self .scenario ,
193
- intervention_constraints = [mutates [v ](k ) for k , v in test ["mutations" ].items ()],
194
- treatment_variable = next (self .scenario .variables [v ] for v in test ["mutations" ]),
195
- expected_causal_effect = {
196
- self .scenario .variables [variable ]: effects [effect ]
197
- for variable , effect in test ["expected_effect" ].items ()
198
- },
199
- effect_modifiers = {self .scenario .variables [v ] for v in test ["effect_modifiers" ]}
200
- if "effect_modifiers" in test
201
- else {},
202
- estimate_type = test ["estimate_type" ],
203
- effect = test .get ("effect" , "total" ),
204
- )
205
- return abstract_test
206
-
207
190
def _execute_tests (self , concrete_tests , test , f_flag ):
208
191
failures = 0
209
192
if "formula" in test :
0 commit comments