Skip to content

Commit 9596056

Browse files
Remove unnecessary local variables
1 parent 1e030d8 commit 9596056

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

causal_testing/testing/causal_test_engine.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,10 @@ def execute_test_suite(self, test_suite: CausalTestSuite) -> list[CausalTestResu
8585
causal_test_results = []
8686

8787
for test in tests:
88-
treatment_variable = test.treatment_variable
89-
treatment_value = test.treatment_value
90-
control_value = test.control_value
9188
estimator = estimator_class(
92-
(treatment_variable.name,),
93-
treatment_value,
94-
control_value,
89+
(test.treatment_variable.name,),
90+
test.treatment_value,
91+
test.control_value,
9592
minimal_adjustment_set,
9693
(test.outcome_variable.name,),
9794
)

0 commit comments

Comments
 (0)