Use workers instead of alternate parameter names#7302
Use workers instead of alternate parameter names#7302stefanv merged 11 commits intoscikit-image:mainfrom
workers instead of alternate parameter names#7302Conversation
"num_workers" is inline with what dask uses and also the most common pattern currently for this kind of parameter.
|
I will comment on the original issue, but I'm not sure we landed on the correct naming. |
|
Maybe this should be coordinated across packages via a SPEC. |
Co-authored-by: Marianne Corvellec <[email protected]>
|
Marking this as a draft for now. |
|
Hello scikit-image core devs! There hasn't been any activity on this PR for more than 180 days. I have marked it as "dormant" to make it easy to find. |
Co-authored-by: Marianne Corvellec <[email protected]>
After more discussion, the current consensus is to follow at least one pre-existing convention, in this case the one from SciPy.
num_workers instead of alternate parameter namesworkers instead of alternate parameter names
|
Why this CI failure all of a sudden? 🤔 |
|
Because I forgot to mark a new test as xfail in case pywavelets isn't available. Should pass now and be ready for review. |
We need to first, ignore the warning if it is raised, and also make sure that it has the correct stacklevel. For strange reasons, pytest.warns includes the warning in `records` even if the category and message don't match. So we need to ensure that is passes `assert_stacklevel`.
* 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)
Description
Closes #4876. Refer to the closed issue for the original discussion, which settled on
workersornum_workersas the consistent name to use.I opted for the latter here, as it seemed more explicit.Current consensus is to follow at least one pre-existing naming convention, in this case the one from SciPy.Checklist
./doc/examplesfor new featuresRelease note
Summarize the introduced changes in the code block below in one or a few sentences. The
summary will be included in the next release notes automatically: