Example #1
0
    def __init__(self):
        NTdict.__init__(self,
                         __CLASS__  = 'ROGscore',
                         __FORMAT__ = "ROGscore '%(colorLabel)s' %(colorCommentList)s"
                       )
        # Explicitly showing instance attributes here in init.
        self.colorLabel = constants.COLOR_GREEN
#        Elements in this list are tuples of (color, comment).
        self.colorCommentList = NTlist()
Example #2
0
 def __init__( self, table, id, **kwds ):
     NTdict.__init__( self, __CLASS__  = 'NmrPipeTabRow',
                              table      = table,
                              id         = id,
                              name       = 'row'+str(id),
                              __FORMAT__ = '%(name)s',
                              **kwds
                       )
     # set defaults to None
     for c in self.keys():
         self.setdefault( c, None )
Example #3
0
    def __init__(self, checkID, level, modelCount ):
        NTdict.__init__( self, __CLASS__ = 'CingResult',
                         checkID = checkID,
                         alternate = None,
                         level   = level,
#                         comment = Whatif.explain(checkID),
                       )
#        # Initialize the lists
#        if Whatif.cingNameDict.has_key(checkID):
#            self.alternate = Whatif.cingNameDict[checkID]
#        for c  in  [ VALUE_LIST_STR, QUAL_LIST_STR]:
        for c  in  [ constants.VALUE_LIST_STR ]:
            self[c] = nTfill( None, modelCount)
Example #4
0
    def __init__( self, tabFile=None, **kwds ):
        NTdict.__init__( self, __CLASS__ = 'nmrPipeTab', **kwds )

        self.setdefault('noneIndicator', '-') # character to identify the None value

        self.columnDefs = NTlist()          # list of column definitions, implemented
                                            # as NTdict
        self.rows       = NTlist()
        self.nrows      = 0
        self.remarks    = NTlist()
        self.data       = NTdict()
        self.tabFile    = tabFile

        if tabFile:
            self.readFile( tabFile  )
Example #5
0
 def __init__(self):
     NTdict.__init__(self)
     self[ ERROR_ID ] =  NTlist()        
     self[ WARNING_ID ] =  NTlist()
     self[ MESSAGE_ID ] =  NTlist()
     self[ DEBUG_ID ] =  NTlist()
Example #6
0
 def __init__(self):
     NTdict.__init__(self)
     self[ERROR_ID] = NTlist()
     self[WARNING_ID] = NTlist()
     self[MESSAGE_ID] = NTlist()
     self[DEBUG_ID] = NTlist()