[Scipy-tickets] [SciPy] #1444: interp2d ignores copy keyword

SciPy Trac scipy-tickets@scipy....
Mon May 23 13:11:26 CDT 2011


#1444: interp2d ignores copy keyword
----------------------------+-----------------------------------------------
 Reporter:  tlatorre        |       Owner:  somebody
     Type:  defect          |      Status:  new     
 Priority:  normal          |   Milestone:          
Component:  Other           |     Version:  0.7.2   
 Keywords:  interp2d, copy  |  
----------------------------+-----------------------------------------------
 interp2d does not keep just a reference to the values of the function when
 copy keyword is set to false.

 {{{
 #!python
 >>> import numpy as np
 >>> from scipy.interpolate import interp2d
 >>> x = np.array([0,1,2])
 >>> y = np.array([0,3])
 >>> z = np.array([[1,2,3], [4,5,6]])
 >>> f = interp2d(x,y,z,copy=False)
 >>> f(0.5,1.6)
 array([ 3.1])
 >>> z[:] = 0
 >>> f(0.5,1.6)
 array([ 3.1])
 }}}

 The last line should be 0.0.

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


More information about the Scipy-tickets mailing list