Skip to content

Comments

Ensure proper handling of np.nan in regionprops#1190

Open
alex-l-kong wants to merge 2 commits intomainfrom
regionprops_nan_patch
Open

Ensure proper handling of np.nan in regionprops#1190
alex-l-kong wants to merge 2 commits intomainfrom
regionprops_nan_patch

Conversation

@alex-l-kong
Copy link
Contributor

What is the purpose of this PR?

The current version of regionprops_extraction.major_minor_axis_ratio uses np.float("NaN"), which works inconsistently in the latest versions of numpy.

How did you implement your changes

Convert to np.nan, which is more universal.

@alex-l-kong alex-l-kong self-assigned this Mar 14, 2025
@alex-l-kong alex-l-kong requested a review from srivarra March 14, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant