Changeset 3413 for nappy/trunk


Ignore:
Timestamp:
13/02/08 21:02:46 (12 years ago)
Author:
ckilburn
Message:

delimiter changes for 1001

Location:
nappy/trunk/nappy/na_file
Files:
2 edited

Legend:

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

    r3412 r3413  
    3131    NAFile is also an abstract class and should not be called directly. 
    3232     
    33     NAFile holds all the methods are common to either all or more than 
     33    NAFile holds all the methods that are common to either all or more than 
    3434    one NASA Ames FFI class. These methods set up the main read and write 
    3535    functionality for the NASA Ames format. 
     
    220220        Writes the special and normal comments sections. 
    221221        Assumes we are at the right point in the file. 
    222         """   
     222        """ 
    223223        self.header.write("%s\n" % self.NSCOML) 
    224224        self.header.write("%s\n" * self.NSCOML % tuple(self.SCOM)) 
     
    235235        lines = header.readlines() 
    236236        headlength = len(lines) 
    237         lines[0] = "%s    %s\n" % (headlength, self.FFI) 
     237        lines[0] = "%s%s%s\n" % (headlength, self.delimiter, self.FFI) 
    238238        return lines 
    239239 
  • nappy/trunk/nappy/na_file/na_file_1001.py

    r3412 r3413  
    8484 
    8585            for n in range(self.NV): 
    86                 var_string = var_string + ("%s    " % self.V[n][i]) 
     86                var_string = var_string + ("%s%s" % (self.V[n][i], self.delimiter)) 
    8787 
    88             self.file.write("%s    %s\n" % (self.X[i], var_string)) 
     88            self.file.write("%s%s%s\n" % (self.X[i], self.delimiter, var_string)) 
Note: See TracChangeset for help on using the changeset viewer.