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

SciPy Trac scipy-tickets@scipy....
Sat Mar 3 16:18:12 CST 2012


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

Comment(by clopezx):

 Thanks for the prompt reply.

 Yes, this is part of a production code that used to be running before and
 stopped running when I upgraded the software.

 my code fails when I call sproot below. xarr is an array from 0-20000 in
 steps with space 100, yarr is a function that changes from value 0 to
 value 1 with a sort of exponential behavior, but tapers out at 1:

     # make a B-spine representation of the xarr and yarr
     tck = scipy.interpolate.splrep(xarr, yarr)
     t, c, k = tck

     tenpt = numpy.max(yarr) * .1 # the ten percent point in y-axis
     ntypt = numpy.max(yarr) * .9 # the 90 percent point in y-axis
     #lower the spline at the abcissa

     xten = scipy.interpolate.sproot((t, c-tenpt, k))[0]
     xnty = scipy.interpolate.sproot((t, c-ntypt, k))[0]

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


More information about the Scipy-tickets mailing list