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

fix: support mask_identity=True for axis=None in ptp, std, etc. #2172

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Jan 30, 2023

In #2020, these tests were xfailed. I must have done so whilst working locally, and committed the change.

This PR restores support for mask_identity=True for the axis=None case of these composite reductions by pulling out the result as the final operation. As such, we choose what the identity value is for these reductions (np.nan, except for ptp which returns 0)

@agoose77 agoose77 changed the title fix: support mask_identity=True for axis=None reduction fix: support mask_identity=True for axis=None in ptp, std, etc. Jan 30, 2023
@agoose77
Copy link
Collaborator Author

Linting will be fixed by #2153 or by upgrading isort

@agoose77 agoose77 temporarily deployed to docs-preview January 30, 2023 15:23 — with GitHub Actions Inactive
@agoose77 agoose77 force-pushed the agoose77/fix-reducer-axis-none branch from 438117b to b065831 Compare January 30, 2023 17:16
@agoose77 agoose77 temporarily deployed to docs-preview January 30, 2023 17:28 — with GitHub Actions Inactive
@agoose77 agoose77 requested a review from jpivarski January 30, 2023 17:41
Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

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

I see (unfinished work). It looks good to me; merge when you're ready.

@agoose77 agoose77 merged commit 82536ce into main Jan 30, 2023
@agoose77 agoose77 deleted the agoose77/fix-reducer-axis-none branch January 30, 2023 20:16
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.

2 participants