diff options
author | Simon Conseil <contact@saimon.org> | 2016-05-22 23:51:28 +0200 |
---|---|---|
committer | Simon Conseil <contact@saimon.org> | 2016-05-23 00:01:02 +0200 |
commit | d805e9b66228e68a0eb14d901cd350159c49af18 (patch) | |
tree | b32a585c011333d70a68f1c2ce1b55eadada6dc3 /numpy/lib/tests/test_function_base.py | |
parent | 25e3ebf4def51b290f544fb0bc7f6d8eb5c04b85 (diff) | |
download | numpy-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