minor updates/fixes for consistency with scikit-image 0.22#670
minor updates/fixes for consistency with scikit-image 0.22#670rapids-bot[bot] merged 34 commits intorapidsai:branch-24.02from
Conversation
gigony
left a comment
There was a problem hiding this comment.
Thank you, @grlee77, for this update. It's helpful to learn about the method for making the document accessible in the IDE, as shown in this pull request.
Looks good to me!
This is the default (and for CuPy it is the only implemented option). scikit-image uses numpy with kind='stable'
…r gaussian_filter
…pends on mask size see: scikit-image/scikit-image#7136
… properties exist in COL_DTYPES
…return_error argument in phase_cross_correlation
np.NAN -> np.nan
needed in order for the .pyi files to be useful: see: scikit-image/scikit-image#7073
d04791d to
695121e
Compare
b83c620 to
92db3c8
Compare
|
The regionprops test failure was a due to a couple missing entries in PROPS and should be fixed now. I didn't see that jitify error related to |
92db3c8 to
41a5325
Compare
jakirkham
left a comment
There was a problem hiding this comment.
Thanks Greg! 🙏
Had a few comments below
Co-authored-by: jakirkham <jakirkham@gmail.com>
|
As pointed out by Greg offline, we need to update this line and run Line 226 in bf5a6f7 |
jakirkham
left a comment
There was a problem hiding this comment.
Need to update scikit-image upper bound
1024fea to
b886417
Compare
|
Do we need PyWavelets as a (test) dependency? Seeing these errors on CI: FAILED python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py::test_denoise_invariant_color[float16] - ImportError: PyWavelets is not installed. Please ensure it is installed in order to use this function.
FAILED python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py::test_denoise_invariant_color[float32] - ImportError: PyWavelets is not installed. Please ensure it is installed in order to use this function.
FAILED python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py::test_denoise_invariant_color[float64] - ImportError: PyWavelets is not installed. Please ensure it is installed in order to use this function.
FAILED python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py::test_denoise_invariant_3d - ImportError: PyWavelets is not installed. Please ensure it is installed in order to use this function.
FAILED python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py::test_calibrate_denoiser_extra_output - ImportError: PyWavelets is not installed. Please ensure it is installed in order to use this function.
FAILED python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py::test_calibrate_denoiser - ImportError: PyWavelets is not installed. Please ensure it is installed in order to use this function.
FAILED python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py::test_input_image_not_modified - ImportError: PyWavelets is not installed. Please ensure it is installed in order to use this function. |
|
Looks like this is used as part of As pointed out by Greg offline, upstream appears to have relaxed the PyWavelets dependency in 0.22.0 with PR ( scikit-image/scikit-image#7156 ), which is why the dependency is now missing |
…available add pywavelets to test dependencies
jakirkham
left a comment
There was a problem hiding this comment.
Thanks Greg! 🙏
Think we might want to drop this top-level import and rewrite with something like this
python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py
Outdated
Show resolved
Hide resolved
python/cucim/src/cucim/skimage/restoration/tests/test_j_invariant.py
Outdated
Show resolved
Hide resolved
Co-authored-by: jakirkham <jakirkham@gmail.com>
raydouglass
left a comment
There was a problem hiding this comment.
ops-codeowners changes look good
|
/merge |
|
Thanks Greg! 🙏 |
This MR does not add any new features. It just has minor fixes ported from scikit-image 0.22. Most changed lines are from moving additional modules to use
__init__.pyifiles as for upstream scikit-image.Regarding introduction of
py.typed, see discussion on the scikit-image repo. The TLDR version is that it enables VS CODE (and potentially other IDEs) to use the.pyifiles for intellisense capabilities. Those using mypy with strict type checking, may have to add an exclusion like the following to disable warnings about most of the cuCIM API which does not currently use type hints: