[SciPy-user] Cookbook/InputOutput

Nils Wagner nwagner@iam.uni-stuttgart...
Fri Oct 26 08:44:55 CDT 2007


Hi all,

I tried to use the home-made function
(available at http://www.scipy.org/Cookbook/InputOutput)
to read an array from the file topo-28.xohis
(See attachment for details).

If I run the script (xy.py) I get

python -i xy.py
Traceback (most recent call last):
   File "xy.py", line 47, in ?
     data = readArray("topo-28.xohis")
   File "xy.py", line 35, in readArray
     items = split(stripped_line)
TypeError: split() takes at least 2 arguments (1 given)

How can I fix the problem ?

Any pointer would be appreciated.

Thanks in advance

                       Nils
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xy.py
Type: application/octet-stream
Size: 1258 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20071026/5dd06456/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topo-28.xohis
Type: application/octet-stream
Size: 1851 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20071026/5dd06456/attachment-0003.obj 


More information about the SciPy-user mailing list