[Numpy-svn] [numpy/numpy] d805e9: BUG: fix incorrect printing of 1D masked arrays
GitHub
noreply at github.com
Mon May 23 14:12:08 EDT 2016
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: d805e9b66228e68a0eb14d901cd350159c49af18
https://github.com/numpy/numpy/commit/d805e9b66228e68a0eb14d901cd350159c49af18
Author: Simon Conseil <contact at saimon.org>
Date: 2016-05-23 (Mon, 23 May 2016)
Changed paths:
M numpy/ma/core.py
M numpy/ma/tests/test_core.py
Log Message:
-----------
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.
Commit: 59a7b250d4076d58c8b48bdf3800f2b1eac41e1b
https://github.com/numpy/numpy/commit/59a7b250d4076d58c8b48bdf3800f2b1eac41e1b
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-05-23 (Mon, 23 May 2016)
Changed paths:
M numpy/ma/core.py
M numpy/ma/tests/test_core.py
Log Message:
-----------
Merge pull request #7658 from saimn/fix-ma-repr
BUG: fix incorrect printing of 1D masked arrays
Compare: https://github.com/numpy/numpy/compare/313a9b20e51b...59a7b250d407
More information about the Numpy-svn
mailing list