|
From: Daniel S. <she...@un...> - 2005-09-07 20:40:25
|
The question was answered yesterday and that was the answer> thanks On Wed, 07 Sep 2005 15:09:04 +1200 Greg Ewing <gre...@ca...> 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. | > gre...@ca... > +--------------------------------------+ |