Skip to content

Use data files from GitLab repo. - #7875

Merged
stefanv merged 25 commits into
scikit-image:mainfrom
mkcor:move-data-gitlab
Aug 16, 2025
Merged

stefanv merged 25 commits into
scikit-image:mainfrom
mkcor:move-data-gitlab

Conversation

@mkcor

@mkcor mkcor commented Aug 16, 2025

Copy link
Copy Markdown
Member

Description

Supersedes #7872 (hopefully).

My local tests pass, except for (unrelated) failures: one related to dispatching backends and the other three about FutureWarnings.

/cc @lagru @stefanv @Czaki

Checklist

Release note

For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.

...

@mkcor mkcor added the 🔧 type: Maintenance Refactoring and maintenance of internals label Aug 16, 2025
@mkcor

mkcor commented Aug 16, 2025

Copy link
Copy Markdown
Member Author

Then we may consider removing all

*.gif
*.jpg
*.npy
*.npz
*.png
*.tif
*.xml

files from src/skimage/data.



def fetch(data_filename):
def fetch(data_filename, prefix=None):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keyword undocumented.

@Czaki

Czaki commented Aug 16, 2025 •

Copy link
Copy Markdown
Contributor

Then we may consider removing all

Not. Functions like data.astronaut() return data from this directory, not a fetched one.

'restoration/camera_rl.npy', possibly pointing to a remote location.

prefix : str, optional
If None, `data_filename` is prefixed by 'src/skimage'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If None, `data_filename` is prefixed by 'src/skimage'
If None, `data_filename` is prefixed by 'src/skimage'.

Returns
-------
file_path : str
Path of the local file, possibly pointing to a remote location.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The matching info can be found in src/skimage/data/_registry.py.

@mkcor

mkcor commented Aug 16, 2025

Copy link
Copy Markdown
Member Author

Then we may consider removing all

Not. Functions like data.astronaut() return data from this directory, not a fetched one.

With this change (this PR), it's being fetched remotely (from the GitLab repo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 type: Maintenance Refactoring and maintenance of internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants