New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No valueerror for underdetermined #6453
No valueerror for underdetermined #6453
Conversation
Analog classes to LineModelND do not raise a ValueError when inputs are under determined but instead return False. Please see issue #6452, Proposed changes 1 and 2. This commit also removes redundancies in test_fit.py.
Analog classes to CircleModel do not raise a ValueError when inputs are under determined but instead return False. Please see issue #6452, Proposed changes 3 and 4.
Hello @judafe! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2022-08-26 22:00:51 UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @judafe, as I mentioned in #6452, a deprecation is probably necessary, but otherwise everything is fine 😉
Thanks @judafe, good to see you back here. I wouldn't worry about those warnings. I had been meaning to fix the I/O ones for awhile, so this was a good motivation to go ahead and do it (see #6460) |
Co-authored-by: Marianne Corvellec <marianne.corvellec@ens-lyon.org>
CI is failing for ImportError: "<function show_rag at 0x7fe5b0767160>" in "skimage.future.graph.rag" requires "matplotlib >=3.5" although scikit-image/skimage/future/graph/rag.py Line 449 in c129f02
|
ImportError: "<function show_rag at 0x7fe5b0767160>" in "skimage.future.graph.rag" requires "matplotlib >=3.5" @mkcor, |
Thanks, @judafe! I guess I didn't refresh my page 🙃 |
Instead of raising a ValueError, since f8dfea6 [1] this is addressed by returning `False`. [1] scikit-image#6453
* Complete deprecation of selem parameter in favor of footprint. Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of selem module Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of in_place parameter in favor of "out". Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of max_iterations parameter in favor of "max_num_iter". Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of max_iter parameter in favor of "max_num_iter". Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of iterations parameter in favor of "num_iter". Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of n_iter_max parameter in favor of "max_num_iter". Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of compute_hessian_eigenvalues Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of input parameter in favor of "label_image". Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of greyco* functions Though removed_version points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Complete deprecation of multichannel kwarg Though the default removed_version of deprecate_multichannel_kwarg points at 1.0, the deprecation is finished in 0.20 which was not planned at the time of 0.19's release. * Remove unused deprecate_multichannel_kwarg This decorator is no longer necessary since the deprecation of multichannel is completed with 0.20 (previously 1.0). Make test's independent of temporary decorations of library functions such as hog and pyramid_gaussian. Their deprecation decorator was removed. * Complete deprecation of height, width in rectangle and remove unused imports. * Remove completed items in TODO.txt For filters.inverse(), the removed_version targets 0.21 and not 0.20. So move. * Complete deprecation of neighbourhood parameter I think removed_version="1.2" is actually supposed to be 1.0 (or 0.20). * Remove deprecated grey and greyreconstruct modules These deprecations are already part of 0.19. So it should be fine to remove them in 0.20. * Remove warning about deprecated *_iter Missed this earlier. * Revert "Complete deprecation of compute_hessian_eigenvalues" This reverts commit 56f0431. The deprecation of `compute_hessian_eigenvalues` was introduced after all 0.19.x releases (see git tag --contains d2689f5)! So the target should be 0.21. * Deprecate automatic channel detection in gaussian Automatic detection of the color channel based on the old deprecated `multichannel=None` was broken in version 0.19. This commit recovers the old behavior for 0.20 using a proxy object `ChannelAxisNotSet`. The behavior is still deprecated though and should be removed completely in 0.21. Note that the warning is only raised if the automatic behavior deviates from the behavior that will be the new default in 0.21, which is `channel_axis=None`. This way we only notify users that were affected by the broken behavior in 0.19 and now deprecated behavior in 0.20. * Complete deprecation of coordinates parameter in `regionprops` (since 0.16) and `active_contour` (since 0.18). * Remove outdated TODO for CircleModel.estimate Instead of raising a ValueError, since f8dfea6 [1] this is addressed by returning `False`. [1] #6453 * Remove removed files from meson.build These were removed in d951774 and b53b46a. * Remove obsolete tests for coordinates parameter * Catch expected warning for deprecated color channel inference in gaussian * Update skimage/_shared/filters.py Co-authored-by: Stefan van der Walt <sjvdwalt@gmail.com> * Explain proxy value in more clearly Co-authored-by: Gregory Lee <grlee77@gmail.com> Co-authored-by: Stefan van der Walt <sjvdwalt@gmail.com>
Description
If accepted, this PR closes #6452.
Checklist
./benchmarks
, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.example, to backport to v0.19.x after merging, add the following in a PR
comment:
@meeseeksdev backport to v0.19.x
run-benchmark
label. To rerun, the labelcan be removed and then added again. The benchmark output can be checked in
the "Actions" tab.
Tests