Skip to content

Commit c2d00be

Browse files
fix merge conflict induced bug
1 parent 9c923b5 commit c2d00be

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

causal_testing/json_front/json_class.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def _create_abstract_test_case(self, test, mutates, effects):
8686
treatment_var.distribution = getattr(scipy.stats, dist)(**params)
8787
self._append_to_file(treatment_var.name + f" {dist}({params})", logging.INFO)
8888

89+
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
8990
abstract_test = AbstractCausalTestCase(
9091
scenario=self.scenario,
9192
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,
186187
)
187188
self._append_to_file(msg, logging.INFO)
188189

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-
207190
def _execute_tests(self, concrete_tests, test, f_flag):
208191
failures = 0
209192
if "formula" in test:

0 commit comments

Comments
 (0)