[SciPy-User] numpy I/O question

Matwey V. Kornilov matwey.kornilov at gmail.com
Sun Jan 2 10:51:38 EST 2011


The input format is out my responsibility. I already have written C++ tool 
that parses the data good enough.

I will be asked 'why should we use python which even can't parse as good as 
c++ does?' `sed` isn't a solution.

Zachary Pincus wrote:

>>
>> I need help with NumPy I/O. I have specific array format in my input
>> text
>> data. Due to bug in data-producing software the negative values are
>> concatenated to the previous values. (i.e. "1.0-3.4 3.1").
> 
> Can you just run the text files through sed or something and replace
> "-" with " -"?






More information about the SciPy-User mailing list