-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MAINT modify import raccoon face for SciPy >= 1.10 #24521
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
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.
The LGTM. The new explicit variable name is better.
Let's wait for the CI to complete to check that the test_image
module can collect and pass as expected.
Actually the is a new dependency on
We should |
I added |
from scipy import misc | ||
if sp_version.release >= parse_version("1.10").release: | ||
pytest.importorskip("pooch") | ||
from scipy.datasets import face as raccoon_face |
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.
This will only be covered by the nightly test or once 1.10 is released.
def raccoon_face(): | ||
if sp_version.release >= parse_version("1.10").release: | ||
pytest.importorskip("pooch") | ||
from scipy.datasets import face |
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.
same here
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
Towards fixing #24424 (the "Test Collection Failure" item in particular).
Modify the import of the raccoon face depending on the version of SciPy.
This is only visible on the scipy-dev CI.
I also rename the variable
face
toraccoon_face
since it will override the function itself.