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

    r3356 r3414  
    4646        self._writeAuxVariablesHeaderSection()                                   
    4747        self._writeComments()                                                    
    48         lines = self._fixHeaderLength(self.header) 
    49         self.file.writelines(lines)       
     48        self._fixHeaderLength() 
     49        self.file.write(self.header.read()) 
    5050 
    5151    def _setupArrays(self): 
Note: See TracChangeset for help on using the changeset viewer.