[Numpy-discussion] Linux to Windows porting question

Daniel Sheltraw sheltraw at unm.edu
Wed Sep 7 13:41:10 CDT 2005


The question was answered yesterday and that was the
answer> thanks

On Wed, 07 Sep 2005 15:09:04 +1200
  Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Daniel Sheltraw wrote:
> 
>>     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
> 
> Did you open the file in binary mode?
> 
> -- 
> Greg Ewing, Computer Science Dept, 
>+--------------------------------------+
> University of Canterbury,	   | A citizen of 
>NewZealandCorp, a	  |
> Christchurch, New Zealand	   | wholly-owned subsidiary 
>of USA Inc.  |
> greg.ewing at canterbury.ac.nz	 
>  +--------------------------------------+





More information about the Numpy-discussion mailing list