Skip to content

Commit 56c35e8

Browse files
refactor identification
1 parent 8bce0b2 commit 56c35e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

causal_testing/specification/causal_dag.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,12 @@ def identification(self, base_test_case):
475475
"""
476476
minimal_adjustment_sets = []
477477
if base_test_case.effect == "total":
478-
minimal_adjustment_sets = self.casual_dag.enumerate_minimal_adjustment_sets(
479-
self.treatment_variable.name, self.outcome_variable.name
478+
minimal_adjustment_sets = self.enumerate_minimal_adjustment_sets(
479+
[base_test_case.treatment_variable.name], [base_test_case.outcome_variable.name]
480480
)
481481
elif base_test_case.effect == "direct":
482-
minimal_adjustment_sets = self.casual_dag.direct_effect_adjustment_sets(
483-
self.treatment_variable.name, self.outcome_variable.name
482+
minimal_adjustment_sets = self.direct_effect_adjustment_sets(
483+
[base_test_case.treatment_variable.name], [base_test_case.outcome_variable.name]
484484
)
485485
else:
486486
raise ValueError("Causal effect should be 'total' or 'direct'")

0 commit comments

Comments
 (0)