[Scipy-tickets] [SciPy] #1831: TypeError: object of type 'int' has no len()

SciPy Trac scipy-tickets@scipy....
Thu Jan 31 12:38:03 CST 2013


#1831: TypeError: object of type 'int' has no len()
-------------------------------+--------------------------------------------
 Reporter:  nils               |       Owner:  pv         
     Type:  defect             |      Status:  new        
 Priority:  normal             |   Milestone:  Unscheduled
Component:  scipy.interpolate  |     Version:  0.11.0     
 Keywords:                     |  
-------------------------------+--------------------------------------------
 {{{
 ERROR: test_interpolate.TestInterp1D.test_nd
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
 runTest
     self.test(*self.arg)
   File "/home/nwagner/local/lib64/python2.7/site-
 packages/scipy/interpolate/tests/test_interpolate.py", line 329, in
 test_nd
     self._nd_check_interp(kind)
   File "/home/nwagner/local/lib64/python2.7/site-
 packages/scipy/interpolate/tests/test_interpolate.py", line 280, in
 _nd_check_interp
     interp210(1.),
   File "/home/nwagner/local/lib64/python2.7/site-
 packages/scipy/interpolate/interpolate.py", line 421, in __call__
     y_new = self._call(x_new)
   File "/home/nwagner/local/lib64/python2.7/site-
 packages/scipy/interpolate/interpolate.py", line 397, in _call_spline
     result = spleval(self._spline,x_new.ravel())
   File "/home/nwagner/local/lib64/python2.7/site-
 packages/scipy/interpolate/interpolate.py", line 855, in spleval
     for index in np.ndindex(*sh):
   File "/home/nwagner/local/lib64/python2.7/site-
 packages/numpy/lib/index_tricks.py", line 538, in __new__
     if len(shape) == 0 or (len(shape) == 1 and len(shape[0]) == 0):
 TypeError: object of type 'int' has no len()
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1831>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list