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

29.2. Row.nPhysRows(): How many physical rows will this logical row occupy?

The number of physical rows required is the number of logical columns, plus the number of suffix columns, divided by the number of physical columns, rounded up to the next multiple of maxPhysCols. See Section 51, “divCeil(): Discrete rounding function”.

cbchistlib.py
# - - -   R o w . n P h y s R o w s

    def nPhysRows(self, maxPhysCols):
        '''How many physical rows when folded into maxPhysCols columns?
        '''
        return divCeil(self.cbcHist.nCols + Row.N_SUFFIX_COLS,
                       maxPhysCols)