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

fix: check for edge-case #102

Merged
merged 1 commit into from
Jan 3, 2025
Merged

fix: check for edge-case #102

merged 1 commit into from
Jan 3, 2025

Conversation

mmolari
Copy link
Collaborator

@mmolari mmolari commented Jan 3, 2025

Running with the debug version:

target/debug/pangraph build -b 20 -l 500 --circular data/ges-1.fa -o tmp/ges-1.fa.json

would trigger an assertion error, that would detect an empty node when it should not be present.

This was caused by the fact that the detection of empty nodes was based on checking whether the node start and end are at the same position. However there is an edge-case: circular paths made of a single node can have coinciding start and end, and be non-empty. This is now checked properly in the assertion.

@ivan-aksamentov ivan-aksamentov merged commit 7bc7400 into rust Jan 3, 2025
13 of 14 checks passed
@ivan-aksamentov ivan-aksamentov deleted the fix/assertion branch January 3, 2025 11:12
@mmolari mmolari mentioned this pull request Jan 8, 2025
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