summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/tests/test_defmatrix.py
diff options
context:
space:
mode:
authorMichael Seifert <michaelseifert04@yahoo.de>2017-02-22 16:50:49 +0100
committerMichael Seifert <michaelseifert04@yahoo.de>2017-02-28 01:11:24 +0100
commitd0bf15d1b99dd239530b25a0d939ee4475f85af5 (patch)
tree3954c44d0f6035645f601af3a0f7b8debba95608 /numpy/matrixlib/tests/test_defmatrix.py
parente58c6adc591e47675192ecfc584dad54a00cf401 (diff)
downloadnumpy-d0bf15d1b99dd239530b25a0d939ee4475f85af5.tar.gz
MAINT: Warn users when calling np.ma.MaskedArray.(arg-)partition function.
Using the np.median function on MaskedArrays uses the not-overriden partition method of a plain np.ndarray without error or warning. (#7330) This PR overrides the partition method on MaskedArrays but simply to throw a Warning. This will make users aware that something ignores the mask without breaking backwards-compatibility. This also applies to the argpartition method (even if it's not called by np.median).
Diffstat (limited to 'numpy/matrixlib/tests/test_defmatrix.py')
0 files changed, 0 insertions, 0 deletions