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='\n', dtype=np.Int16) array([3, 4, 5], dtype=int16) np.fromfile('test.dat', sep='\n', dtype=np.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
Erin Sheldon wrote:
Hi everyone -
The "fromfile" method isn't working for Int8 in ascii mode:
# cat test.dat 3 4 5
The problem is that the internal _scan method for that data-type has not been written (it was not just a character code for fscanf). It should not be too hard to write but hasn't been done yet. Perhaps you can file a ticket so we don't lose track of it. -Travis
participants (2)
-
Erin Sheldon
-
Travis Oliphant