Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make adjset::is_canonical more strict #1227

Merged

Conversation

BradWhitlock
Copy link
Member

A host code was giving me adjset groups called group_0_1 and group_1_0 on domains 0 and 1, respectively. The canonical way of naming would be group_0_1. The compare_pointwise function used in the adjset validation tool calls is_canonical to determine whether it needs to rename adjset components but the function was not strict enough to detect this. Consequently, the tool would successfully extract a topology for one adjset group and not the other, causing the pointwise comparison to fail.

This change makes adjset::is_canonical check more of the group name to see if the numbers it contains are sorted. That fixes the pointwise comparison.

@BradWhitlock BradWhitlock requested a review from cyrush January 8, 2024 19:44
Copy link
Member

@cyrush cyrush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks again!

@BradWhitlock BradWhitlock merged commit 4fceb68 into develop Jan 8, 2024
25 checks passed
@BradWhitlock BradWhitlock deleted the bugfix/whitlock/more_strict_adjset_is_canonical branch January 8, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants