10000 DOC: Add changelog for ``masked_invalid`` change. by cmarmo · Pull Request #22406 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: Add changelog for masked_invalid change. #22406

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

Merged
merged 2 commits into from
Oct 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
  • Loading branch information
cmarmo and seberg authored Oct 11, 2022
commit c36da384a7ba2fa983b1d958ffc77d4d38aa6453
9 changes: 5 additions & 4 deletions doc/release/upcoming_changes/22046.change.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
``masked_invalid`` is modified consistently with ``masked_where``
``masked_invalid`` now modifies the mask in-place
-----------------------------------------------------------------

According to the related documentation, ``masked_invalid`` is now a call
to ``masked_where``, then used with ``copy=False`` modifies the input masked
array in place.
When used with ``copy=False``, `numpy.ma.masked_invalid` now modifies the
input masked array in-place.
This makes it now behave identical to ``masked_where`` and better matches the
documentation.
0