[Scipy-tickets] [SciPy] #1869: Griddata: "memory leak"

SciPy Trac scipy-tickets@scipy....
Mon Mar 18 08:28:57 CDT 2013


#1869: Griddata: "memory leak"
----------------------------------+-----------------------------------------
 Reporter:  MSilva                |       Owner:  pv         
     Type:  defect                |      Status:  new        
 Priority:  normal                |   Milestone:  Unscheduled
Component:  scipy.interpolate     |     Version:  devel      
 Keywords:  griddata interpolate  |  
----------------------------------+-----------------------------------------
 Runing griddata inside a loop makes the memory usage increase without
 bound.

 Example (from example in the official documentation):

 def func(x, y):
     return x*(1-x)*np.cos(4*np.pi*x) * np.sin(4*np.pi*y**2)**2

 grid_x, grid_y = np.mgrid[0:1:100j, 0:1:200j]
 points = np.random.rand(1000, 2)
 values = func(points[:,0], points[:,1])

 for i in range(100000):

     grid_z1 = griddata(points, values, (grid_x, grid_y), method='linear')

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


More information about the Scipy-tickets mailing list