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

State sets in parsimony #287

Merged
merged 9 commits into from
Dec 4, 2024
Merged

State sets in parsimony #287

merged 9 commits into from
Dec 4, 2024

Conversation

ivan-aksamentov
Copy link
Member

Replaces ndarray profiles with char sets for the parsimony calculation

ivan-aksamentov and others added 9 commits November 22, 2024 08:12
Here I use `StateSet` as before, just without additional nested field.

I removed the `ParsimonyVarPos::state` field and now use `StateSet::get_one()`instead. It should consistently return the same character (currently it's `BTreeSet`, so it returns the first character in alphabetical order). This allows to avoid setting this extra `.state` field - which is really easy to forget or to do incorrectly.
@ivan-aksamentov ivan-aksamentov merged commit 331d4d5 into rust Dec 4, 2024
14 checks passed
@ivan-aksamentov ivan-aksamentov deleted the refactor/state-set branch December 4, 2024 22:28
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