Hi everyone -
The "fromfile" method isn't working for Int8 in
ascii mode:
# cat test.dat
3
4
5
>>> import numpy as np
>>> np.__version__
'0.9.9.2547'
>>> np.fromfile('test.dat', sep=3D'\n', dtype=3Dnp.Int16)
array([3, 4, 5], dtype=3Dint16)
>>> np.fromfile('test.dat', sep=3D'\n', dtype=3Dnp.Int8)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: don't know how to read character files with that array type
Was this intended?
Erin
|