[Scipy-svn] r2252 - trunk/Lib/interpolate

scipy-svn at scipy.org scipy-svn at scipy.org
Tue Oct 10 13:37:21 EDT 2006


Author: stefan
Date: 2006-10-10 12:36:34 -0500 (Tue, 10 Oct 2006)
New Revision: 2252

Modified:
   trunk/Lib/interpolate/fitpack.py
Log:
Let splrep return tck as a tuple.


Modified: trunk/Lib/interpolate/fitpack.py
===================================================================
--- trunk/Lib/interpolate/fitpack.py	2006-10-10 05:53:33 UTC (rev 2251)
+++ trunk/Lib/interpolate/fitpack.py	2006-10-10 17:36:34 UTC (rev 2252)
@@ -376,7 +376,7 @@
         n,c,fp,ier = dfitpack.curfit(task, x, y, w, t, wrk, iwrk, xb, xe, k, s)
     else:
         n,c,fp,ier = dfitpack.percur(task, x, y, w, t, wrk, iwrk, k, s)
-    tck = [t[:n],c[:n-k-1],k]
+    tck = (t[:n],c[:n-k-1],k)
     if ier<=0 and not quiet:
         print _iermess[ier][0]
         print "\tk=%d n=%d m=%d fp=%f s=%f"%(k,len(t),m,fp,s)




More information about the Scipy-svn mailing list