Next / Previous / Contents / TCC Help System / NM Tech homepage

34.1. CensusRow.__init__()

cbchistlib.py
# - - -   C e n s u s R o w . _ _ i n i t _ _

    def __init__(self, cbcHist, birdId):
        '''Constructor.
        '''
        #-- 1
        # [ self  :=  self as a new Row instance
        #   self.birdId  :=  birdId ]
        Row.__init__(self, cbcHist)
        self.birdId = birdId

        #-- 2
        # [ self._rowLabel  :=  a new CensusRowLabel for birdId ]
        self._rowLabel = CensusRowLabel(birdId)

        #-- 3
        # [ self._cellList  :=  a sequence of cbcHist.nCols instances
        #                       of CensusCell ]
        self._cellList = [ CensusCell()
                           for k in range(cbcHist.nCols) ]