diff options
author | Mark Wiebe <mwiebe@enthought.com> | 2011-08-03 09:53:51 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-08-27 07:26:51 -0600 |
commit | b471b5aace551d294f2ffe4f7be569fd6f148f50 (patch) | |
tree | de42d13fac9e056246326b49a570399e955901cc /numpy/core/arrayprint.py | |
parent | ae79b71a89d4c25c028202410ef4b538081c0dce (diff) | |
download | numpy-b471b5aace551d294f2ffe4f7be569fd6f148f50.tar.gz |
ENH: missingdata: Change boolean indexing to broadcast to the left manually
I've also restricted it just to allow one-dimensional masks or masks
which match the number of dimensions of the array with the data. This
will require further discussion on the list at some point.
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 525fcab8a..d5ef01fe8 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -218,16 +218,13 @@ def _boolFormatter(x): def _array2string(a, max_line_width, precision, suppress_small, separator=' ', prefix="", formatter=None): - print "DEBUG: in array2string!" if max_line_width is None: max_line_width = _line_width - print "DEBUG: A" if precision is None: precision = _float_output_precision - print "DEBUG: B" if suppress_small is None: suppress_small = _float_output_suppress_small @@ -241,7 +238,6 @@ def _array2string(a, max_line_width, precision, suppress_small, separator=' ', summary_insert = "" data = ravel(a) - print "DEBUG: making formatdict" formatdict = {'bool' : _boolFormatter, 'int' : IntegerFormat(data), 'float' : FloatFormat(data, precision, suppress_small), @@ -253,7 +249,6 @@ def _array2string(a, max_line_width, precision, suppress_small, separator=' ', 'timedelta' : TimedeltaFormat(data), 'numpystr' : repr, 'str' : str} - print "DEBUG: made formatdict" if formatter is not None: fkeys = [k for k in formatter.keys() if formatter[k] is not None] |