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

BUG: numpy.ma mask nan on __itruediv__ #20551

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

math2001
Copy link

@math2001 math2001 commented Dec 9, 2021

Fixes #20506, see my comment there for details about the issue.

This is pretty old code, i tried to match the style.

This bug showed up because __itruediv__ differed from __truediv__ (which
does mask the NaN). Unfortunately, both methods use different strategies
to protect against division by 0, which leads to inconsistencies (that
one in particular).
@bsipocz bsipocz added the triage review Issue/PR to be discussed at the next triage meeting label Sep 17, 2022
@seberg seberg removed the triage review Issue/PR to be discussed at the next triage meeting label Oct 19, 2022
@seberg
Copy link
Member

seberg commented Oct 19, 2022

Removing the triage-review for now again. It would be nice to make a decision though (see also the linked other issue).
Lets re-tag again if we wish to discuss again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Needs decision
Development

Successfully merging this pull request may close these issues.

BUG: / and /= behaves different in masked arrays with nan
3 participants