[SciPy-user] interp2d raises AttributeError: interp2d instance has no attribute 'tck', scipy 0.4.8, numpy 0.9.6

Albert Huang albert at csail.mit.edu
Wed Apr 12 17:06:04 CDT 2006


Hi,

The following program raises an AttributeError

file: testinterp2d.py
====
from scipy.interpolate.interpolate import interp2d
from numpy import *

X, Y = mgrid[0:3, 0:3]
Z = X * Y
ip = interp2d( X, Y, Z )
ip( 0.5, 0.5 )


====
# python testinterp2d.py
Traceback (most recent call last):
  File "testinterp2d.py", line 9, in ?
    ip( 0.5, 0.5 )
  File
"/home/albert/local/lib/python2.4/site-packages/scipy/interpolate/interpolate.py",
line 64, in __call__
    z,ier=fitpack._fitpack._bispev(*(self.tck+[x,y,dx,dy]))
AttributeError: interp2d instance has no attribute 'tck'

====
This is on scipy 0.4.8, numpy 0.9.6, Ubuntu 5.10, python 2.4

Am I not using interp2d correctly?

Thanks,
-albert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.scipy.net/pipermail/scipy-user/attachments/20060412/ec8ba0bf/attachment.htm


More information about the SciPy-user mailing list