[Scipy-svn] r6683 - trunk/scipy/interpolate

scipy-svn@scip... scipy-svn@scip...
Sun Sep 5 05:40:31 CDT 2010


Author: ptvirtan
Date: 2010-09-05 05:40:31 -0500 (Sun, 05 Sep 2010)
New Revision: 6683

Modified:
   trunk/scipy/interpolate/interpnd.pyx
Log:
BUG: interpolate/interpnd: accept non-ndarray values arrays in the N-d interpolators

Modified: trunk/scipy/interpolate/interpnd.pyx
===================================================================
--- trunk/scipy/interpolate/interpnd.pyx	2010-09-05 10:40:19 UTC (rev 6682)
+++ trunk/scipy/interpolate/interpnd.pyx	2010-09-05 10:40:31 UTC (rev 6683)
@@ -64,11 +64,11 @@
         C-contiguous, and of correct type.
         """
         points = _ndim_coords_from_arrays(points)
+        values = np.ascontiguousarray(values)
 
         self._check_init_shape(points, values, ndim=ndim)
 
         points = np.ascontiguousarray(points.astype(np.double))
-        values = np.ascontiguousarray(values)
 
         self.values_shape = values.shape[1:]
         if values.ndim == 1:



More information about the Scipy-svn mailing list