[Scipy-svn] r2689 - trunk/Lib/sandbox/spline

scipy-svn@scip... scipy-svn@scip...
Wed Feb 7 08:33:09 CST 2007


Author: jtravs
Date: 2007-02-07 08:32:55 -0600 (Wed, 07 Feb 2007)
New Revision: 2689

Modified:
   trunk/Lib/sandbox/spline/fitpack.py
Log:
Fixed bug with parametric spline.


Modified: trunk/Lib/sandbox/spline/fitpack.py
===================================================================
--- trunk/Lib/sandbox/spline/fitpack.py	2007-02-07 12:18:41 UTC (rev 2688)
+++ trunk/Lib/sandbox/spline/fitpack.py	2007-02-07 14:32:55 UTC (rev 2689)
@@ -236,8 +236,9 @@
         _parcur_cache['t']=t
         _parcur_cache['wrk']=wrk
         _parcur_cache['iwrk']=iwrk
-    c.shape=idim,nest 
-    c = c[:][:n-k-1]
+    c = c[:n*idim]
+    c.shape=idim,n
+    c = c[:,:n-k-1]
     tcku = [t[:n],list(c),k],u
     if ier<=0 and not quiet:
         print _iermess[ier][0]



More information about the Scipy-svn mailing list