[SciPy-dev] Possibly bug in savetxt

Scott Sinclair scott.sinclair.za at gmail.com
Fri Nov 21 09:38:23 EST 2008


2008/11/21 Nils Wagner <nwagner at iam.uni-stuttgart.de>:
> The colon is missing in the output file when I use
>
> savetxt('dsvnode_nw.dat',A,fmt='%6i %6i', delimiter=':')
>
> to store A.
>
>>>> shape(A)
> (5760, 2)
>>>> type(A)
> <type 'numpy.ndarray'>

I think the fmt string overrides the delimiter when multiple formats
are specified.

Try savetxt('dsvnode_nw.dat', A, fmt='%6i:%6i'')

Cheers,
Scott



More information about the SciPy-Dev mailing list