[SciPy-user] Read an array from a file using io.read_array

Alan G Isaac aisaac@american....
Thu Nov 22 22:14:08 CST 2007


> On Thu, 22 Nov 2007 11:04:04 -0500 Alan wrote:
>> I think you want numpy.loadtxt 


On Thu, 22 Nov 2007, Nils Wagner apparently wrote:
> Can I use more than one character to filter out comment 
> lines starting with "!" or "$" ? 
> e.g. comments='!$'


As long as all comments start in the same way and these two 
characters always start comments sequentially, no problem.
But I think you are saying there are two **different** 
comment characters?  Then you will have to filter comments 
yourself.

Cheers,
Alan Isaac




More information about the SciPy-user mailing list