File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
causal_testing/specification Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -475,12 +475,12 @@ def identification(self, base_test_case):
475
475
"""
476
476
minimal_adjustment_sets = []
477
477
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 ]
480
480
)
481
481
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 ]
484
484
)
485
485
else :
486
486
raise ValueError ("Causal effect should be 'total' or 'direct'" )
You can’t perform that action at this time.
0 commit comments