summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_arraysetops.py
diff options
context:
space:
mode:
authorMilesCranmer <miles.cranmer@gmail.com>2018-12-26 18:57:25 -0500
committerMilesCranmer <miles.cranmer@gmail.com>2022-06-09 20:37:24 -0400
commit0f6108c2b37a70571bee6185dbe0ffa92adf995e (patch)
treedcd9bde9dd0d9ffa734392624e2717381fc26c0b /numpy/lib/tests/test_arraysetops.py
parent935e3d91822c436d519b7120820d4295eaa95fbf (diff)
downloadnumpy-0f6108c2b37a70571bee6185dbe0ffa92adf995e.tar.gz
MAINT: Check for overflow in integral np.isin
- Before this fix, if, e.g., int8(-100) and int8(100) are the min and max, respectively, of ar2, ar2_range would experience an integer overflow and optimal_parameters would be an invalid value. ``if optimal_parameters:`` would skip the fast integer algorithm regardless, but warnings would be generated when they are unnecessary. - np.log10(... + 1) was changed to np.log10(... + 1.0) to avoid further potential problems from overflow here. - See https://github.com/numpy/numpy/pull/12065 for discussion.
Diffstat (limited to 'numpy/lib/tests/test_arraysetops.py')
0 files changed, 0 insertions, 0 deletions