[SciPy-dev] Possibly bug in savetxt
Scott Sinclair
scott.sinclair.za@gmail....
Fri Nov 21 08:38:23 CST 2008
2008/11/21 Nils Wagner <nwagner@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