diff options
author | Mark Wiebe <mwiebe@enthought.com> | 2011-08-02 20:37:42 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-08-27 07:26:50 -0600 |
commit | 0163eb8f9de6584db731db12ec68b549fc5b1749 (patch) | |
tree | ef513141fbf487bd5d74d00f4bf3d35a832963a9 /numpy/core/arrayprint.py | |
parent | ea5dcd7947615678bda053ed65ab921fec6f1421 (diff) | |
download | numpy-0163eb8f9de6584db731db12ec68b549fc5b1749.tar.gz |
ENH: Work in progress on arr.reshape, other misc changes
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index fcda825c7..525fcab8a 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -218,13 +218,16 @@ 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 @@ -238,6 +241,7 @@ 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), @@ -249,6 +253,8 @@ 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] if 'all' in fkeys: |