Skip to content

Commit

Permalink
We need to maintain order. New tests should be added to catch this.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcdermott committed Aug 24, 2024
1 parent 3ec94ea commit 208a91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aces/extract_subtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def extract_subtree(
child_anchor_realizations = window_summary_df.select(
"subject_id",
pl.col("child_anchor_timestamp").alias("subtree_anchor_timestamp"),
).unique()
).unique(maintain_order=True)

# Step 5: Recurse
recursive_result = extract_subtree(
Expand Down

0 comments on commit 208a91d

Please sign in to comment.