[Numpy-tickets] [NumPy] #544: typo in arrayprint.py added in r3877

NumPy numpy-tickets@scipy....
Mon Jul 2 11:12:45 CDT 2007


#544: typo in arrayprint.py added in r3877
------------------------+---------------------------------------------------
 Reporter:  chanley     |       Owner:  chanley      
     Type:  defect      |      Status:  new          
 Priority:  normal      |   Milestone:  1.0.4 Release
Component:  numpy.core  |     Version:  devel        
 Severity:  normal      |    Keywords:               
------------------------+---------------------------------------------------
 A typo in arrayprint r3877 causes the unittests to fail:

 {{{
 ======================================================================
 ERROR: Test of conversions and indexing
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/data/sparty1/dev/site-
 packages/lib/python/numpy/core/tests/test_ma.py", line 200, in
 check_testCI
     junk, garbage = str(x2), repr(x2)
   File "/data/sparty1/dev/site-packages/lib/python/numpy/core/ma.py", line
 761, in __repr__
     'data': str(self.filled()),
   File "/data/sparty1/dev/site-packages/lib/python/numpy/core/numeric.py",
 line 473, in array_str
     return array2string(a, max_line_width, precision, suppress_small, ' ',
 "", str)
   File "/data/sparty1/dev/site-
 packages/lib/python/numpy/core/arrayprint.py", line 240, in array2string
     separator, prefix)
   File "/data/sparty1/dev/site-
 packages/lib/python/numpy/core/arrayprint.py", line 153, in _array2string
     len(str(mininum.reduce(data))))
 NameError: global name 'mininum' is not defined
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/544>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list