[Numpy-discussion] Linux to Windows porting question
Daniel Sheltraw
sheltraw at unm.edu
Tue Sep 6 11:45:07 EDT 2005
Hello NumPy Listees
I am trying to port some code to Windows that works fine
under Linux. The offending line
is:
blk = fromstring(f_fid.read(BLOCK_LEN),
num_type).byteswapped().astype(Float32).tostring()
The error I get is:
ValueError: string size must be a multiple of element
size
Does anyone have an idea where the problem might be?
BLOCK_LEN is specified in bytes
and num_type is Int32.
Thanks,
Daniel
More information about the NumPy-Discussion
mailing list