diff options
author | Ruth Comer <ruth.comer@metoffice.gov.uk> | 2022-07-16 15:04:53 +0100 |
---|---|---|
committer | Ruth Comer <ruth.comer@metoffice.gov.uk> | 2022-07-16 15:04:53 +0100 |
commit | b8c6d09208ecb7f0d83a8b06ab9e15e720f03730 (patch) | |
tree | d092b2755b507edd29a9b56fb3b8b8f991d9492a /numpy/array_api/tests/test_array_object.py | |
parent | e2efced9bdfc773f5aca2487f12ab1cb2bd11833 (diff) | |
download | numpy-b8c6d09208ecb7f0d83a8b06ab9e15e720f03730.tar.gz |
BUG: fix ma.minimum.reduce with axis keyword
Fixes the problem reported at
https://github.com/numpy/numpy/pull/21977#issuecomment-1186082534
The reduce method here effectively calls itself with an unmasked
MaskedArray (mask=nomask) and then expects either a MaskedArray or
a scalar. This change ensures that an ordinary ndarray is
converted to a MaskedArray, following the pattern already used in
mean and var in this module.
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions