-
Notifications
You must be signed in to change notification settings - Fork 327
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
Update pytest imports for test_special.py #3129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I changed some code to make sure the failure of import statement in |
Thank you! Sorry for the incomplete fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Wenjun Si <[email protected]>
* Update pytest imports for test_special.py (#3129) Co-authored-by: Wenjun Si <[email protected]> * Make PyPI user name configurable (#3130) Co-authored-by: RandomY-2 <[email protected]>
What do these changes do?
Currently, the file tries to import certain elliptic functions and integrals such as elliprc from both scipy and err_func_integrals.py. However, these functions don't exist in scipy nor err_func_integrals.py if the scipy version is low. So directly importing them causes import errors. We can move these imports to within the test functions, so only if we have correct dependencies then we import them.
Related issue number
Fixes #3128
Check code requirements