-
-
Notifications
You must be signed in to change notification settings - Fork 12k
Open
Labels
Description
Reproducing code example:
import numpy as np
a = np.ma.array([10])
a[a < 0].sum()Prints 0.0. But
import numpy as np
a = np.ma.array([10], mask=False)
a[a < 0].sum()Prints masked. Huh?
Numpy/Python version information:
1.15.0 3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 09:55:02) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]