Ignore:
Timestamp:
14/02/08 12:36:06 (12 years ago)
Author:
astephen
Message:

Tidied up _fixHeaderLength in na_file.py.
Changed write interface so self.write(na_dict, delimiter, float_format)
is a separate call to creating the instance.
Fixed unit tests to cope with this.

BUT: broke nappy_api.openNAFile(<file>, "w") with these changes.
Hence need to think about changes being made to openNAFile() so that it
can predict (or not) the FFI.

Only 1001 unit test (worked on by CK) is broken at present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/na_file/na_file_2310.py

    r3356 r3414  
    4848        self._writeAuxVariablesHeaderSection() 
    4949        self._writeComments() 
    50         lines = self._fixHeaderLength(self.header) 
    51         self.file.writelines(lines) 
     50        self._fixHeaderLength() 
     51        self.file.write(self.header.read()) 
    5252 
    5353    def _readData1(self, datalines, ivar_count): 
Note: See TracChangeset for help on using the changeset viewer.