Repository navigation
Update docstub and add plugin for new dtype-union form - #8033
Merged
Merged
Conversation
Rewrite docstrings in attempt to make them work for both `skimage.transform.warp`, and the `skimage2` `warp`.
Co-authored-by: Lars Grüter <[email protected]>
Co-authored-by: Stefan van der Walt <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
coderabbitai Bot
added a commit
that referenced
this pull request
Jan 22, 2026
Docstrings generation was requested by @lagru. * #8033 (comment) The following files were modified: * `src/skimage/filters/rank/_percentile.py` * `src/skimage/filters/rank/bilateral.py`
This was referenced Jan 23, 2026
* origin/main: (254 commits) Refactor, document migration utilities (scikit-image#8184) ci: improve handling of pr labels (scikit-image#8169) Doctest migration in PRs & on all platforms (scikit-image#8141) Update SKIP 4 (import hierarchy, backporting, testing) (scikit-image#8097) One page per function / class in HTML docs for skimage2 (scikit-image#8154) Pin minimum pytest to 9 (scikit-image#8174) docs: make source install instructions more discoverable and add build requirements to top level requirements file (scikit-image#8165) Drop `--maxfail=5` from local pytest config (scikit-image#8170) Use standard C99 static inline instead of `__inline` (scikit-image#8159) Fix structural_similarity win_size / gaussian_weights conflict (scikit-image#8162) Unwrap seed refactor (scikit-image#8142) ci: Remove llvm build and add ccache support on windows (scikit-image#8164) Document warn_external in contributing guide (scikit-image#8163) CI: Fix emscripten dependencies and clean up wheel test commands (scikit-image#8147) Test only changed subpackages (scikit-image#8103) Fix nightlies: update deprecated scipy call, fix underdetermined test Fix minkowski distanced invocation for SciPy >= 1.18 (scikit-image#8157) Port `structural_similarly` to ski2 (scikit-image#8104) make spin build requirement a lower bound (scikit-image#8158) Drop Python 3.11 Support (scikit-image#8153) ...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Cursor reviewed by MB.
From Stefanv's patch to main
Fixes scikit-image#3831. Mask any NaNs in the image. This is a more general fix than in scikit-image#7176. ```release-note `unwrap_phase` now handles input images with NaN values, by taking the NaN values to be an implicit mask. Previously, the NaN values could cause the code to hang. Closes scikit-image#3831. ``` --------- Co-authored-by: Lars Grüter <[email protected]>
…ometric' into pre-megamove-integration * matthew-brett/rephrase-coordinate-in_geometric: Attempt rewrite of docstring for clarity. Apply suggestions from code review Rewrite geometric docstring Apply suggestions from code review Apply suggestions from code review Use and extend Stéfan's rewrite of rotation note Remove punctuation at end of single-word list items Rewrite _geometric docstrings for SK2 xy-ij change
This comment was marked as outdated.
This comment was marked as outdated.
…ge#8308) Backport of a69547b onto pre-megamove-integration. Fixes scikit-image#8307. Closes scikit-image#7623. plotly 7.0.0 dropped support for kaleido 0.2.1, breaking every gallery example that calls `plotly.io.show(fig)`. kaleido's 1.x rewrite needs both a plotly>=6.1.1 floor and a headless Chrome install, which each CI docs job now provides. - Bumped `kaleido` from `==0.2.1` to `>=1.0`, so gallery examples render through headless Chrome instead of the deprecated bundled binary. - Bumped `plotly` from `>=5.20` to `>=6.1.1`, kaleido's own hardcoded floor for compatibility with 1.x. - The GitHub Actions docs job installs Chrome through apt: it runs on arm64, where neither `plotly_get_chrome` nor `browser-actions/setup-chrome` can provision Chrome (Chrome for Testing has no Stable-channel linux-arm64 build yet). - CircleCI's docs job installs Chrome through apt too, since `plotly_get_chrome`'s console script isn't reliably on PATH there. Docs CI tests. <!-- See https://scikit-image.org/docs/stable/development/contribute.html#documenting-changes --> ```release-note ... ``` Assisted-by: Cursor <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
# Conflicts: # src/skimage/data/_fetchers.py # src/skimage/filters/rank/_percentile.py # src/skimage/filters/rank/bilateral.py # src/skimage/restoration/unwrap.py # src/skimage/transform/_geometric.py
instead of `skimage2` which is an empty wrapper.
Not sure where these changes come from – probably from b5b70e1?
stefanv
reviewed
Oct 30, 2026
and update _percentile.py and bilateral.py accordingly (no errors raised in these files). This still raises the number of errors that docstub reports. I'd like to leave that for another PR to fix.
lagru
approved these changes
Nov 7, 2026
Member
|
I merged this optimistically since this mostly touches infrastructure and docstrings (in a way we discussed during meetings). But I'm prepared to revert if you find something problematic in view of the pending v0.27. |
stefanv
pushed a commit
that referenced
this pull request
Nov 11, 2026
Orthogonal to #8033 Co-authored-by: Lars Grüter <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follows #8028.
_skimage2instead ofskimage2, because the latter is just an empty wrapper.ndarray of shape (M, N) and dtype in {uint8, uint16}overndarray of shape (M, N) and dtype (uint8 or uint16).The form change introduce a few new errors. I'd like to address them in a follow-up PR instead of here.
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.