numpy text io is fundamentally broken in python3, there are sometimes
workarounds, but currently its probably best to stick to python2 or not
use it.
The workarounds usually just make actually fixing the functions harder.
On 09/24/2015 09:24 AM, Eric Firing wrote:
> On 2015/09/23 9:17 PM, Andrew N
On 2015/09/23 9:17 PM, Andrew Nelson wrote:
Dear list,
whilst trying to write an array to disk I am coming across the
following. What am I doing wrong? Surely f is a file handle?
(python 3.4.3, numpy 1.9.2)
import numpy as np
a = np.arange(10.)
with open('test.dat', 'w') as f:
np.savetxt(