[Scipy-tickets] [SciPy] #1164: invalid index in linregress with one array

SciPy Trac scipy-tickets@scipy....
Fri Apr 23 13:15:28 CDT 2010

#1164: invalid index in linregress with one array
 Reporter:  gjc     |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  0.8.0   
Component:  Other   |     Version:  0.7.0   
 Keywords:          |  

Comment(by josefpktd):

 linregress needs exactly two data series (2 arrays or 2 columns or 2 rows)


     x, y : array_like
         two sets of measurements.  Both arrays should have the same
         If only x is given, then it must be a two-dimensional array where
         dimension has length 2.  The two sets of measurements are then
         by splitting the array along the length-2 dimension.

 but this could be checked in the code and raise a more informative value
 error instead, also *args is not an informative signature

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

More information about the Scipy-tickets mailing list