Repository navigation
Conversation
## Description As per our discussion at the in-person sprint, let's go for the `src` layout and get started with the `skimage2` namespace. /cc @lagru @stefanv @jni @matthew-brett @Czaki ## Checklist <!-- Before pull requests can be merged, they should provide: --> - A descriptive but concise pull request title - [Docstrings for all functions](https://github.com/numpy/numpydoc/blob/main/doc/example.py) - [Unit tests](https://scikit-image.org/docs/dev/development/contribute.html#testing) - A gallery example in `./doc/examples` for new features - [Contribution guide](https://scikit-image.org/docs/dev/development/contribute.html) is followed ## Release note For maintainers and optionally contributors, please refer to the [instructions](https://scikit-image.org/docs/stable/development/contribute.html#documenting-changes) on how to document this PR for the release notes. ```release-note ... ``` --------- Co-authored-by: Stefan van der Walt <[email protected]> Co-authored-by: Lars Grüter <[email protected]> Co-authored-by: Grzegorz Bokota <[email protected]> Co-authored-by: Stefan van der Walt <[email protected]> Co-authored-by: Grzegorz Bokota <[email protected]>
|
Weird, there should be only one commit in this PR (the latest one)... |
|
Oh, the scikit-image/src/skimage/data/_fetchers.py Line 179 in 1643ba8 |
|
Removing test data, I'm happy to do. But I think we should consider waiting for skimage2 before we remove data files that have so far haven't requiring an internet connection at runtime. @Czaki floated the idea to use a skimage-data package. That would enable the download at install time and allow us to make them optional. If skimage-data is not installed, attempt to download them at runtime, if that fails raise a warning to include the new dependency. I think that would be the nicest experience for users. But it will make the machinery in |
If you have skimage-data with getter functions, it may not be confusing. try:
from skimage_data import astronaut
except ImportError:
from skimage.data._fetchers import astronaut |
|
A reminder that we're still doing the very expensive data download step in our CI. Wondering if we should be caching, only checking this very infrequently, etc. We should also ensure that we're using lfs as appropriate, if that is compatible with downloading via Python without anything special installed. |
|
A quick search indicates that it may be better if we publish data releases on GitLab, since those are served via static CDN. Raw GitLab URLs are not. To make individual files accessible, we'd use https://docs.gitlab.com/user/packages/generic_packages/ Another alternative we can consider is reaching out to Hugging Face, and asking them whether they would provide us with free storage. |
|
We have changed the base branch for this PR from the Summary - what this means for your PRYou can continue to work on your PR, now based on Once we've merged your PR into the Read on for the rationale, and more detailed instructions. DetailsRationaleWe've changed the base branch to make it easier and smoother to continue to work on your PR, while we work through a rather large change in the directory structure of the repository - a change that we have called Megamove. See the Megamove explanation issue for more detail. Changing the base branch means you do not see merge conflicts related to the Megamove change, and can continue to work with the repository in its original state, without worrying about porting those changes across to the new post-Megamove structure. As you'll see in the linked issue, you can continue to work on your PR as before, and you can continue to use the Github GUI to "Update branch" - this updates from the new To emphasize again, do not try and merge the scikit-image When we've approved your PR, we'll merge into the Any questions, please reply here. |
Description
No rush to pull the trigger... Just submitting here following #7875 and #7876. These data files are now fetched from the GitLab repo.
Checklist
./doc/examplesfor new featuresRelease note
For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.