diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-21 12:23:23 +0200 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-21 12:23:23 +0200 |
commit | 0655cb9e24cff97642c70a98c5258bcbe7a6c3d3 (patch) | |
tree | 7c37bfc06046b5dc89383247b061da6cb1c88ecc /numpy/doc/basics.py | |
parent | 17bae7c3f53d757144403ae09897e32f91a31d74 (diff) | |
download | numpy-0655cb9e24cff97642c70a98c5258bcbe7a6c3d3.tar.gz |
BUG: Ignore invalid and overflow warnings in masked setitem
Giving a warning for invalid/overflow in settitem/casts is right
(IMO), however for masked arrays it can be surprising since the
warning is not useful if the value is invalid but also masked.
So, simply blanket ignore the relevant warnings in setitem via errstate.
(There may be some other cases like `.astype()` where it might be
helpful to MA users to just blanket opt-out of these new warnings.)
Closes gh-23000
Diffstat (limited to 'numpy/doc/basics.py')
0 files changed, 0 insertions, 0 deletions