[Scipy-tickets] [SciPy] #383: spurious ValueError in bisplev and interp2d

SciPy scipy-tickets@scipy....
Thu Mar 1 14:15:28 CST 2007

#383: spurious ValueError in bisplev and interp2d
 Reporter:  pv                 |       Owner:  somebody
     Type:  defect             |      Status:  new     
 Priority:  normal             |   Milestone:          
Component:  scipy.interpolate  |     Version:  devel   
 Severity:  normal             |    Keywords:          
 In 0.5.2 and 0.5.3.dev2799

 The following error
 Traceback (most recent call last):
   File "test.py", line 10, in ?
     interp(x, y)
   File "/usr/lib/python2.4/site-
 packages/scipy/interpolate/interpolate.py", line 113, in __call__
   File "/usr/lib/python2.4/site-packages/scipy/interpolate/fitpack.py",
 line 771, in bisplev
 ValueError: Invalid input data
 occurs in the following code
 import scipy as S
 S.pkgload('interpolate', 'io')

 import scipy.sandbox.spline

 x, y = map(lambda x: x.flatten(), S.meshgrid([1,2,3], [1,2,3]))
 z = S.zeros(x.shape)

 interp = S.interpolate.interp2d(x, y, z)
 interp(x, y)
 It occurs also with larger data sets. The problem seems to be somewhere in
 bisplrep, since also using it produces the same error.

 I have the same problem with scipy.sandbox.spline.bisplev & bisplrep.

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

More information about the Scipy-tickets mailing list