Next / Previous / Contents / Shipman's homepage

35.2. Spec6Field.flatten()

Field flattener.

baseclasses.py
# - - -   S p e c 6 F i e l d . f l a t t e n   - - -

    @staticmethod
    def flatten(spec6):
        '''Flatten a six-letter species code.
        '''
        if  spec6 is None:
            return  BLANK_SPEC6
        else:
            return  spec6.value