Next / Previous / Contents / Shipman's homepage

72.2. ColorBandsField.flatten()

Standard field-flattener for color bands.

baseclasses.py
# - - -   C o l o r B a n d s F i e l d . f l a t t e n   - - -   Static

    @staticmethod
    def flatten(colorBands):
        '''Flatten a color-bands field.
        '''
        if  colorBands is None:
            return BLANK_COLOR_BANDS
        else:
            return colorBands.value.ljust(COLOR_BANDS_L)