-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Forget legacy data dir #4662
Forget legacy data dir #4662
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.
looks good to me, thanks!
thanks! |
* Forget legacy data dir * Add tests for data dir * Ignore pooch tests when github.com is not reachable
Nice touch up |
I think the problem is that some logic around making pooch optional got lost. I opened an issue for it. |
@meeseeksdev backport to v0.17.x |
Can't Dooooo.... It seem like this is already backported (commit is empty).I won't do anything. MrMeeseeks out. |
This reverts commit 137f144.
This reverts commit 137f144.
import numpy as np | ||
import skimage.data as data | ||
from skimage import io | ||
from skimage._shared.testing import assert_equal, assert_almost_equal, fetch | ||
from skimage._shared.testing import ( | ||
assert_equal, assert_almost_equal, fetch, skipif |
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.
using fetch from here will automatically skip things if it is offline.
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.
or i guess, if pooch isn't installed. We can add an offline check too.
* Revert "Forget legacy data dir (#4662)" This reverts commit 137f144. * Make pooch an optional requirement * Make pooch an optional dependency * Add Pooch to documentation requirements * Fixup add documentation to the docstring * Add cell.png to the legacy registry * Update datadir order * Try to avoid circular stuff * Split up the init pooch function * Refine error message when pooch not found * Remove unused imports * Add the os directory test again * Add a test for download all * Add an error for installing Pooch. * Crosslink to our installation instructions * Update skimage/data/__init__.py Co-authored-by: Emmanuelle Gouillart <emma@plot.ly> Co-authored-by: Juan Nunez-Iglesias <juan.nunez-iglesias@monash.edu> Co-authored-by: Emmanuelle Gouillart <emma@plot.ly>
* Revert "Forget legacy data dir (#4662)" This reverts commit 137f144. * Make pooch an optional requirement * Make pooch an optional dependency * Add Pooch to documentation requirements * Fixup add documentation to the docstring * Add cell.png to the legacy registry * Update datadir order * Try to avoid circular stuff * Split up the init pooch function * Refine error message when pooch not found * Remove unused imports * Add the os directory test again * Add a test for download all * Add an error for installing Pooch. * Crosslink to our installation instructions * Update skimage/data/__init__.py Co-authored-by: Emmanuelle Gouillart <emma@plot.ly> Co-authored-by: Juan Nunez-Iglesias <juan.nunez-iglesias@monash.edu> Co-authored-by: Emmanuelle Gouillart <emma@plot.ly>
Description
Fixes #4659
... I think. =P
Checklist
./doc/examples
(new features only)./benchmarks
, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.