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
Misleading error message with invalid morphology.skeletonize
method
#6661
Comments
Thanks for the report @jamesyan-git! This might make a good issue for a first-time contributor — we should add an if clause checking that the method is valid first, then do the dimensionality checks. (e.g. |
I can confirm the bug. Thanks for the report @jamesyan-git, and I agree with @jni's assessment. 👍 |
Hey, Thanks for marking this as a good first issue, this seems like something I can do and I'll work on it! |
Fixed in #6805. |
Description:
When using
skeletonize
on a 2d numpy array with an invalid method parameter, an error message is shown falsely stating that there is a mismatch in the array dimension.I would expect the error message to highlight the incorrect method as the issue rather than incorrect array dimensionality.
Let me know if I can provide any further detail :smi
Way to reproduce:
Traceback or output:
Version information:
The text was updated successfully, but these errors were encountered: