Skip to content

Commit 23bd40f

Browse files
committed
Blacked
1 parent d2fdc91 commit 23bd40f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

causal_testing/specification/causal_dag.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,11 @@ def enumerate_minimal_adjustment_sets(self, treatments: list[str], outcomes: lis
311311
outcome_node_set,
312312
)
313313
)
314-
valid_minimum_adjustment_sets = [adj for adj in minimum_adjustment_sets
315-
if self.constructive_backdoor_criterion(proper_backdoor_graph, treatments,
316-
outcomes, adj)]
314+
valid_minimum_adjustment_sets = [
315+
adj
316+
for adj in minimum_adjustment_sets
317+
if self.constructive_backdoor_criterion(proper_backdoor_graph, treatments, outcomes, adj)
318+
]
317319
return valid_minimum_adjustment_sets
318320

319321
def adjustment_set_is_minimal(self, treatments: list[str], outcomes: list[str], adjustment_set: set[str]) -> bool:

0 commit comments

Comments
 (0)