[Scipy-tickets] [SciPy] #1784: Rbf interpolation class is not pickleable thus prevents multiprocessing

SciPy Trac scipy-tickets@scipy....
Sun Dec 2 01:49:57 CST 2012


#1784: Rbf interpolation class is not pickleable thus prevents multiprocessing
-------------------------------------------------------+--------------------
 Reporter:  shaharyi                                   |       Owner:  somebody    
     Type:  enhancement                                |      Status:  needs_review
 Priority:  normal                                     |   Milestone:  Unscheduled 
Component:  scipy.interpolate                          |     Version:  0.11.0      
 Keywords:  rbf multiprocessing piclkable unpicklable  |  
-------------------------------------------------------+--------------------

Comment(by shaharyi):

 I suggest the following change in scipy.interpolate.rbf

 replace the last line of __init__ with:

 if not has_attr(self,'nodes'):
     self.nodes = linalg.solve(self.A, self.di)

 This way one can provide the __init__ with 'nodes' that prevent it from
 solving every time.
 So you can pass Rbf instance along with 'nodes' and the client process
 will do
 rbf = Rbf(..., nodes=mynodes)

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


More information about the Scipy-tickets mailing list