[SciPy-dev] NameError: global name 'asarray' is not defined

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Nov 7 07:41:38 CST 2002


Hi,

I would like to write an array to an ascii stream

l = integrate.odeint(F0, l0[0], t)
file=open("eigenpath.dat",'w')
io.write_array(file,l)

Traceback (most recent call last):
  File "moody.py", line 87, in ?
    io.write_array(file,l)
  File
"/usr/local/lib/python2.1/site-packages/scipy/io/array_import.py", line
385, in write_array
    arr = asarray(arr)
NameError: global name 'asarray' is not defined

Any suggestion ?

Nils



More information about the Scipy-dev mailing list