Ignore:
Timestamp:
19/02/08 16:22:40 (12 years ago)
Author:
ckilburn
Message:

delimiter changes

File:
1 edited

Legend:

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

    r3440 r3461  
    8181        """ 
    8282        for m in range(len(self.X)): 
    83             var_string = "%s" % self.X[m] 
     83            var_string = self.format % self.X[m] 
    8484 
    8585            for n in range(self.NV): 
    86                 var_string = var_string + ("%s%s" % (self.delimiter, self.V[n][m])) 
     86                var_string = var_string + (self.format % self.V[n][m]) 
    8787 
    88             self.file.write("%s\n" % var_string) 
     88            self.file.write("%s\n" % var_string.rstrip(" ,")) 
Note: See TracChangeset for help on using the changeset viewer.