summaryrefslogtreecommitdiff
path: root/numpy/doc/basics.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2023-04-21 12:23:23 +0200
committerSebastian Berg <sebastianb@nvidia.com>2023-04-21 12:23:23 +0200
commit0655cb9e24cff97642c70a98c5258bcbe7a6c3d3 (patch)
tree7c37bfc06046b5dc89383247b061da6cb1c88ecc /numpy/doc/basics.py
parent17bae7c3f53d757144403ae09897e32f91a31d74 (diff)
downloadnumpy-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