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

Highlight removal of camelCase aliases in v2.0.0 #132

Closed
wants to merge 1 commit into from

Conversation

peterjc
Copy link
Contributor

@peterjc peterjc commented Feb 14, 2024

I ran into this trying to run some code from June 2022 (presumably using primer3-py v0.6.1)

Cross reference #125

I ran into this trying to run some code from June 2022
(presumably using primer3-py v0.6.1)

Cross reference libnano#125
@benpruitt
Copy link
Contributor

The camelCase aliases should still be present in v2.x.x but a deprecation warning will be displayed if they are used. For example, designPrimers:

https://github.com/libnano/primer3-py/blob/v2.0.2/primer3/bindings.py#L558
https://github.com/libnano/primer3-py/blob/v2.0.2/primer3/bindings.py#L581
https://github.com/libnano/primer3-py/blob/v2.0.2/primer3/__init__.py#L73

So you should be able to do either of the following:

from primer3 import designPrimers
from primer3.bindings import designPrimers

I just did a clean install locally as a sanity check:

In [1]: from primer3 import designPrimers

In [2]: from primer3.bindings import designPrimers

In [3]: import primer3; print(primer3.__version__)
2.0.2

But maybe I'm missing something @peterjc?

@peterjc
Copy link
Contributor Author

peterjc commented Feb 15, 2024

You're right, I must have been misreading something with the setGlobals import failing (#133). Apologies for the noise.

@peterjc peterjc closed this Feb 15, 2024
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