[Scipy-tickets] [SciPy] #765: interpolate.Rbf: should accept array-like input

SciPy scipy-tickets@scipy....
Tue Oct 28 05:08:51 CDT 2008


#765: interpolate.Rbf: should accept array-like input
-------------------------------+--------------------------------------------
 Reporter:  pv                 |       Owner:  somebody       
     Type:  defect             |      Status:  new            
 Priority:  normal             |   Milestone:  0.7.0          
Component:  scipy.interpolate  |     Version:                 
 Severity:  normal             |    Keywords:  interpolate rbf
-------------------------------+--------------------------------------------
 interpolate.Rbf appears to expect all its input to be ndarrays. However,
 it would be very useful to allow also array-like input.

 {{{
 import scipy as sp
 import scipy.interpolate
 c = sp.interpolate.Rbf([1,2,1,2], [1,1,2,2], [1,2,3,4])
 c(1.0, 2.0)
 c(1.0, 2.0)
 ------------------------------------------------------------
 Traceback (most recent call last):
   File "<ipython console>", line 1, in <module>
   File "usr/local/stow/scipy-0.7.dev/lib/python2.5/site-
 packages/scipy/interpolate/rbf.py", line 149, in __call__
 AttributeError: 'float' object has no attribute 'shape'
 }}}

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


More information about the Scipy-tickets mailing list