summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_elementwise_functions.py
diff options
context:
space:
mode:
authorRuth Comer <ruth.comer@metoffice.gov.uk>2022-07-16 15:04:53 +0100
committerRuth Comer <ruth.comer@metoffice.gov.uk>2022-07-16 15:04:53 +0100
commitb8c6d09208ecb7f0d83a8b06ab9e15e720f03730 (patch)
treed092b2755b507edd29a9b56fb3b8b8f991d9492a /numpy/array_api/tests/test_elementwise_functions.py
parente2efced9bdfc773f5aca2487f12ab1cb2bd11833 (diff)
downloadnumpy-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_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions