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_2010.py

    r3383 r3414  
    7575        self._writeAuxVariablesHeaderSection() 
    7676        self._writeComments()          
    77         lines = self._fixHeaderLength(self.header) 
    78         self.file.writelines(lines) 
     77        self._fixHeaderLength() 
     78        self.file.write(self.header.read()) 
     79 
    7980 
    8081    def _setupArrays(self): 
Note: See TracChangeset for help on using the changeset viewer.