i trying read binary file using following command:
import numpy np fid = open(filename, 'rb') ax = np.fromfile(fid, dtype=np.int32, count=1) this command working fine, however
ay = np.fromfile(fid, dtype=np.char, count=16) gives typeerror: data type not understood. idea how can read character type?
your desired data type non-existent, np.char a module.
take @ numpy datatypes, cover byte representation using np.byte, np.int8.
Comments
Post a Comment