summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-02-12 08:10:14 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-02-12 11:21:51 -0700
commit8552cd5fcbf52dee79bdade97ca36c18599e64b4 (patch)
tree6ab4748c181695e15fbf30bda24629a404784602 /numpy/lib/utils.py
parent0a87823d048fca997684e86718be0d46459ad4fd (diff)
downloadnumpy-8552cd5fcbf52dee79bdade97ca36c18599e64b4.tar.gz
BUG: Make nansum work with booleans.
This broke when function_base._nannop tried to fill a boolean array with integer zeros, raising a 'safe_casting' error. It looks like nanargmax and nanargmin would also break, and were probably incorrect for booleans in any case. The fix is not to use fill values for boolean and integer dtypes. Previously that was only done for the integer dtypes.
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions