[Scipy-tickets] [SciPy] #380: splrep fails to produce periodic splines

SciPy scipy-tickets@scipy....
Fri Feb 23 18:19:39 CST 2007

#380: splrep fails to produce periodic splines
 Reporter:  peridot  |       Owner:  somebody
     Type:  defect   |      Status:  new     
 Priority:  normal   |   Milestone:          
Component:  Other    |     Version:          
 Severity:  normal   |    Keywords:          
 I am unable to get splrep to generate spline data for a periodic spline.

 In [136]: splrep([1,2,3,4,5],[4,1,4,1,4],per=True)
 exceptions.ValueError                                Traceback (most
 recent call last)

 /home/peridot/projects/pulse-flux/<ipython console>

 /usr/lib/python2.4/site-packages/scipy/interpolate/fitpack.py in splrep(x,
 y, w, xb, xe, k, task, s, t, full_output, per, quiet)
     375         else:
     376             try:
 --> 377                 raise _iermess[ier][1],_iermess[ier][0]
     378             except KeyError:
     379                 raise

 ValueError:     Error on input data

 I can see no problem with the arguments I'm supplying splrep or the
 arguments splrep is supplying percur, but that's what ier=10 signifies.

 In [137]: scipy.__version__
 Out[137]: '0.5.1'

 In [140]: numpy.__version__
 Out[140]: '1.0rc1'

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

More information about the Scipy-tickets mailing list