Changeset 3746 for nappy


Ignore:
Timestamp:
03/04/08 15:39:44 (11 years ago)
Author:
astephen
Message:

Made string versions of any metadata defined as None

File:
1 edited

Legend:

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

    r3628 r3746  
    189189        #Line 1 if often overwritten at _fixHeaderLength 
    190190        self.header.write(wrapLine("NLHEAD_FFI", self.annotation, self.delimiter, "%d%s%d\n" % (self.NLHEAD, self.delimiter, self.FFI))) 
    191         self.header.write(getAnnotation("ONAME", self.annotation, delimiter = self.delimiter) + self.ONAME + "\n") 
    192         self.header.write(getAnnotation("ORG", self.annotation, delimiter = self.delimiter) + self.ORG + "\n") 
    193         self.header.write(getAnnotation("SNAME", self.annotation, delimiter = self.delimiter) + self.SNAME + "\n") 
    194         self.header.write(getAnnotation("MNAME", self.annotation, delimiter = self.delimiter) + self.MNAME + "\n") 
     191        #print ("ONAME", self.annotation, self.delimiter, self.ONAME) 
     192        self.header.write(getAnnotation("ONAME", self.annotation, delimiter = self.delimiter) + `self.ONAME` + "\n") 
     193        self.header.write(getAnnotation("ORG", self.annotation, delimiter = self.delimiter) + `self.ORG` + "\n") 
     194        self.header.write(getAnnotation("SNAME", self.annotation, delimiter = self.delimiter) + `self.SNAME` + "\n") 
     195        self.header.write(getAnnotation("MNAME", self.annotation, delimiter = self.delimiter) + `self.MNAME` + "\n") 
    195196        self.header.write(wrapLine("IVOL_NVOL", self.annotation, self.delimiter, "%d%s%d\n" % (self.IVOL, self.delimiter, self.NVOL))) 
    196197        line = "%d %d %d%s%d %d %d\n" % (self.DATE[0], self.DATE[1], self.DATE[2], self.delimiter, self.RDATE[0], self.RDATE[1], self.RDATE[2]) 
Note: See TracChangeset for help on using the changeset viewer.