[Scipy-tickets] [SciPy] #239: scipy.interpolate.splprep creates wrong structure: cannot be used with splev

SciPy scipy-tickets at scipy.net
Tue Aug 8 00:00:34 CDT 2006


#239: scipy.interpolate.splprep creates wrong structure: cannot be used with
splev
-------------------------------+--------------------------------------------
 Reporter:  tnoo               |        Owner:  somebody
     Type:  defect             |       Status:  new     
 Priority:  high               |    Milestone:          
Component:  scipy.interpolate  |      Version:  devel   
 Severity:  normal             |   Resolution:          
 Keywords:                     |  
-------------------------------+--------------------------------------------
Changes (by tnoo):

  * severity:  critical => normal

Comment:

 OK, looking into this again it seems that the code does the right thing,
 and only the documentation needs fixing. splprep returns tuple (tck, u)
 where tck is the spline structure and u are the line parameter values.

 The documentation states this in the Output section. Adding a note in the
 Description would help a lot:

 splprep Description:

       Given a list of N rank-1 arrays, x, which represent a curve in
 N-dimensional
       space parametrized by u, find a smooth approximating spline curve
 g(u).
       Note that a tuple is returned, where the spline coefficients are the
 first
       item.
       Uses the FORTRAN routine parcur from FITPACK

 splev Inputs:
       tck -- A sequence of length 3 containg the knots, coefficients, and
 degree of
       the spline. This is the first item returned of the tuple returned by
       splrep or splprep.

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


More information about the Scipy-tickets mailing list