Skip to content

Comments

Remove unused & obsolete legacy_datasets, legacy_registry vars#7677

Merged
lagru merged 4 commits intoscikit-image:mainfrom
lagru:remove-legacy-datasets
Jun 23, 2025
Merged

Remove unused & obsolete legacy_datasets, legacy_registry vars#7677
lagru merged 4 commits intoscikit-image:mainfrom
lagru:remove-legacy-datasets

Conversation

@lagru
Copy link
Member

@lagru lagru commented Jan 28, 2025

Description

Closes #7676.

It looks like legacy_datasets is only ever used to create legacy_registry. legacy_datasets is also not including all datasets from v0.15 as the comment implies.

So I propose to remove them.

Checklist

Release note

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

...

It looks like `legacy_datasets` is only ever used to create
`legacy_registry`. `legacy_datasets` is also not including all datasets
from v0.15 as the comment implies.

So I propose to remove them.
@lagru lagru added the 🔧 type: Maintenance Refactoring and maintenance of internals label Jan 28, 2025
Copy link
Member

@mkcor mkcor left a comment

Choose a reason for hiding this comment

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

Please update file skimage/data/meson.build as well, where legacy_datasets is mentioned in a comment.

@stefanv
Copy link
Member

stefanv commented Feb 3, 2025

Should we not provide a mechanism for distribution packagers to download these datasets?

@lagru
Copy link
Member Author

lagru commented Feb 3, 2025

Should we not provide a mechanism for distribution packagers to download these datasets?

Yes, though, I want to note that this PR doesn't remove the files itself just the unused variables in the PR title. So I'd do that in another PR.

@stefanv
Copy link
Member

stefanv commented Feb 4, 2025

OK, then just @mkcor's comment.

@lagru
Copy link
Member Author

lagru commented Jun 20, 2025

@mkcor does 3be6329 work for you? I'd rather deal with removing these files fully in another PR.

@lagru lagru requested a review from mkcor June 20, 2025 15:15
Copy link
Member

@mkcor mkcor left a comment

Choose a reason for hiding this comment

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

All good!

@lagru lagru merged commit be7ff34 into scikit-image:main Jun 23, 2025
24 checks passed
@stefanv stefanv added this to the 0.26 milestone Jun 23, 2025
@lagru lagru deleted the remove-legacy-datasets branch June 23, 2025 13:06
matthew-brett added a commit to matthew-brett/scikit-image that referenced this pull request Jul 7, 2025
* origin/main:
  Deprecate estimate method in favor of class constructor (scikit-image#7771)
  Temporary fix for Visual Studio & Clang incompatibility in Windows image (scikit-image#7835)
  Address deprecations in Pillow 11.3 (scikit-image#7828)
  Remove unused & obsolete `legacy_datasets`, `legacy_registry` vars (scikit-image#7677)
  Draft migration guide for skimage2 (scikit-image#7785)
  Do not report failure in wheels sub-recipe (scikit-image#7806)
  Use consistent wording in property description. (scikit-image#7804)
  Add intensity_median to regionprops (scikit-image#7745)
  CI: Update pypa/gh-action-pypi-publish to v1.12.4 for attestations on PyPI (scikit-image#7793)
  Document output dtype for transform.resize. (scikit-image#7792)
  Use `cibuildwheel` to build WASM/Pyodide wheels for `scikit-image`, push nightlies to Anaconda.org (scikit-image#7440)
  DOC: Include missing gain parameter in adjust_gamma equation (scikit-image#7763)
  Temporarily pin to `pyodide-build==0.30.0`, and ensure that the correct xbuildenvs are used (scikit-image#7788)
  Deprecate old names & attributes in RegionProperties (scikit-image#7778)
  Pin JasonEtco/create-an-issue action to SHA for v2.9.2 (scikit-image#7787)
  Make doctest-plus work with spin (scikit-image#7786)
  Report failures on main via issue (scikit-image#7752)
  Use `workers` instead of alternate parameter names (scikit-image#7302)
  Fix f-string in otsu plot (scikit-image#7780)
  Further document use of regionprops function and fix terms. (scikit-image#7518)
matthew-brett added a commit to matthew-brett/scikit-image that referenced this pull request Jul 14, 2025
* origin/main: (31 commits)
  Update import convention in certain gallery examples (scikit-image#7764)
  Refactor fundamental matrix scaling (scikit-image#7767)
  Add unit test for cval unequal to zero
  Forward  in _generic_edge_filter
  Remove superfluous mask argument from _generic_edge_filter
  Only report failure on main branch once
  Deprecate estimate method in favor of class constructor (scikit-image#7771)
  Temporary fix for Visual Studio & Clang incompatibility in Windows image (scikit-image#7835)
  Address deprecations in Pillow 11.3 (scikit-image#7828)
  Remove unused & obsolete `legacy_datasets`, `legacy_registry` vars (scikit-image#7677)
  Draft migration guide for skimage2 (scikit-image#7785)
  Do not report failure in wheels sub-recipe (scikit-image#7806)
  Use consistent wording in property description. (scikit-image#7804)
  Add intensity_median to regionprops (scikit-image#7745)
  CI: Update pypa/gh-action-pypi-publish to v1.12.4 for attestations on PyPI (scikit-image#7793)
  Document output dtype for transform.resize. (scikit-image#7792)
  Use `cibuildwheel` to build WASM/Pyodide wheels for `scikit-image`, push nightlies to Anaconda.org (scikit-image#7440)
  DOC: Include missing gain parameter in adjust_gamma equation (scikit-image#7763)
  Temporarily pin to `pyodide-build==0.30.0`, and ensure that the correct xbuildenvs are used (scikit-image#7788)
  Deprecate old names & attributes in RegionProperties (scikit-image#7778)
  ...
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.

Remove legacy_datasets var from skimage.data._registry

3 participants