Get rid of scipy "ascent()" for test images
from scipy 1.10, scipy.misc.ascent
is deprecated:
DeprecationWarning: scipy.misc.ascent has been deprecated in SciPy v1.10.0; and will be completely removed in SciPy v1.12.0. Dataset methods have moved into the scipy.datasets module. Use scipy.datasets.ascent instead.
data = ascent().astype("f")
but trying to use scipy.datasets.ascent
yields
ImportError: Missing optional dependency 'pooch' required for scipy.datasets module. Please use pip or conda to install 'pooch'.
This adds a new dependency (pooch
), which in turns adds a dependency on requests
. I don't think that's reasonable for a test image in our case.
So let's only use the silx ExternalResources
(which uses urllib
).