[Scipy-tickets] [SciPy] #1616: interpolate.sproot fails even when running fitpack tests

SciPy Trac scipy-tickets@scipy....
Sat Mar 3 17:56:23 CST 2012


#1616: interpolate.sproot fails even when running fitpack tests
-------------------------------+--------------------------------------------
 Reporter:  clopezx            |       Owner:  somebody   
     Type:  defect             |      Status:  new        
 Priority:  normal             |   Milestone:  Unscheduled
Component:  scipy.interpolate  |     Version:  0.10.0     
 Keywords:                     |  
-------------------------------+--------------------------------------------

Comment(by clopezx):

 Thanks for all your help!

 I am attaching the file xarr_yarr.npz which contains the xarr and the yarr
 arrays as mentioned. To see the arrays in your python shell simply say
 something like "junkfile = numpy.load('xarr_yarr.npz'), then junkx =
 junkfile[ " arr_0 " ] and junky = junkfile[ " arr_1 " ].

 The error I get when I try to run sproot is:
 /Library/Python/2.7/site-
 packages/scipy-0.11.0.dev_491f9db_20120228-py2.7-macosx-10.7-x86_64.egg/scipy/interpolate/fitpack.pyc
 in sproot(tck, mest)
     666         if len(t)<8:
     667             raise TypeError("The number of knots %d>=8" % len(t))
 --> 668         z,ier=_fitpack._sproot(t,c,k,mest)
     669         if ier==10:
     670             raise TypeError("Invalid input data.
 t1<=..<=t4<t5<..<tn-3<=..<=tn must hold.")

 ValueError: negative dimensions are not allowed

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


More information about the Scipy-tickets mailing list