Re: Linux to Windows porting question

2005-09-06 Thread Peter Otten
SHELTRAW, DANIEL wrote: > 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 mul

Linux to Windows porting question

2005-09-06 Thread SHELTRAW, DANIEL
Hello Pyhton 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