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

pivot and var_names incompatible in VariantFrequencies #39

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

jbloom
Copy link
Contributor

@jbloom jbloom commented Sep 13, 2024

Previously you could specify both pivot and var_names when instantiating VariantFrequencies. But if this was done, the value of pivot was silently ignored in favor of making the pivot variant the last name in var_names.

This pull request fixes this misleading behavior by making those parameters mutually exclusive, and raising an error if the user tries to set both.

Previously you could specify both `pivot` and `var_names` when
instantiating `VariantFrequencies`. But if this was done, the value
of `pivot` was silently ignored in favor of making the pivot variant
the last name in `var_names`.

This pull request fixes this misleading behavior by making those
parameters mutually exclusive, and raising an error if the user
tries to set both.
@marlinfiggins marlinfiggins merged commit 711b2cc into blab:main Nov 8, 2024
1 check passed
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