summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorSimon Conseil <contact@saimon.org>2016-05-22 23:51:28 +0200
committerSimon Conseil <contact@saimon.org>2016-05-23 00:01:02 +0200
commitd805e9b66228e68a0eb14d901cd350159c49af18 (patch)
treeb32a585c011333d70a68f1c2ce1b55eadada6dc3 /numpy/lib/tests/test_function_base.py
parent25e3ebf4def51b290f544fb0bc7f6d8eb5c04b85 (diff)
downloadnumpy-d805e9b66228e68a0eb14d901cd350159c49af18.tar.gz
BUG: fix incorrect printing of 1D masked arrays
Ref #7621. #6748 added `np.ma.MaskedArray._print_width` which is used to cut a masked array before printing it (to save memory and cpu time during the conversion to the object dtype). But this doesn't work correctly for 1D arrays, for which up to 1000 values can be printed before cutting the array. So this commit adds a new class variable `_print_width_1d` to handle the 1D case separately.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions