padmapriya sekaran ppriyajs at gmail.com
Thu Oct 1 13:55:23 CEST 2009

I have a problem in using interp from numpy for which i need 3 array.
my first array is
x = scipy.linspace(0.009,0.53,100)

and the other two array should be read from my file with 100x2 dimension
(file1_lines) but it is read as string instead of two columns

for line in file1_lines:
        line = line.split()
        xp = line[0]
        yp = line[1]
        y = scipy.interp(x,xp,yp)
if i code like this it takes only one value for xp and yp but 100 values for
x. i dont know what to do please help.

Padmapriya Sundrashekaran
Master Student
Life Science Informatics
University of Bonn.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091001/c1830939/attachment.html>

More information about the Python-list mailing list