Commit ad31d1f
Pin white_tophat mode='reflect' to silence pending skimage 2.0 deprecation
scikit-image 2.0 (currently dev) raises ``PendingSkimage2Change`` warnings
from ``skimage.morphology.white_tophat`` because it will switch the
default ``mode`` from ``'reflect'`` to ``'ignore'``. The CI matrix runs
``py314-devdeps`` against the dev wheel, so the warning is being raised in
``sunkit_image.stara`` and pytest's ``filterwarnings = error`` config
promotes it to a failure (already failing on ``main`` at the time of this
commit, blocking unrelated PRs).
Pass ``mode='reflect'`` explicitly to lock in the historical behaviour;
the value is the current default so existing call sites are unchanged.
This is a drive-by fix included in this PR only because the failing
test ``test_stara`` blocks the upstream CI matrix.1 parent cd43419 commit ad31d1f
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
88 | 102 | | |
89 | 103 | | |
90 | 104 | | |
0 commit comments