Skip to content

Commit

Permalink
Update hierarchical.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Oct 1, 2024
1 parent 65e7b07 commit c15c73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/y0/hierarchical.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def augment_collapsed_model(
if not mechanism <= collapsed.nodes():
raise ValueError("The input mechanism must be contained in the collapsed model.")
aug = augmentation_variable
augmented.add_node(aug)
augmented.add_node(aug)
for var in mechanism:
augmented.add_directed_edge(var, aug)
for var in set(augmented.nodes()) - {aug}:
Expand Down

0 comments on commit c15c73b

Please sign in to comment.