Skip to content
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

update vendored binary morphology code #836

Open
wants to merge 2 commits into
base: branch-25.04
Choose a base branch
from

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Feb 16, 2025

@grlee77 grlee77 added bug Something isn't working improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Feb 16, 2025
@grlee77 grlee77 added this to the v25.04.00 milestone Feb 16, 2025
@grlee77 grlee77 self-assigned this Feb 16, 2025
@grlee77 grlee77 requested a review from a team as a code owner February 16, 2025 16:22
@grlee77 grlee77 removed the bug Something isn't working label Feb 16, 2025
Copy link
Contributor

@gigony gigony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @grlee77 for the update!
It looks good to me! I left one comment on this.

@@ -480,6 +481,7 @@ def binary_dilation(

.. seealso:: :func:`scipy.ndimage.binary_dilation`
"""
axes = _util._check_axes(axes, input.ndim)
structure, structure_shape, symmetric = _prep_structure(
structure, input.ndim
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why this statement doesn't use len(axes) while others are using it.

Suggested change
structure, input.ndim
structure, len(axes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants