(channel_info)
Simple method to generate a flattened channel name.
Simple method to generate a flattened channel name.
Simple method to generate a flattened channel name .
def _channel_info_to_flattened_name(channel_info):
    """
    Simple method to generate a flattened channel name.
    """
    if channel_info['start_index'] == -1:
        return channel_info['base_name']
    elif channel_info['start_index'] == channel_info['end_index']:
        return '{0}{1}'.format(channel_info['base_name'],
                               channel_info['start_index'])
    else:
        return '{0}{1}:{2}'.format(channel_info['base_name'],
                                   channel_info['start_index'],
                                   channel_info['end_index'])
def _channel_info_to_flattened_name ( channel_info ) : if channel_info [ 'start_index' ] == - 1 : return channel_info [ 'base_name' ] elif channel_info [ 'start_index' ] == channel_info [ 'end_index' ] : return '{0}{1}' . format ( channel_info [ 'base_name' ] , channel_info [ 'start_index' ] ) else : return '{0}{1}:{2}' . format ( channel_info [ 'base_name' ] , channel_info [ 'start_index' ] , channel_info [ 'end_index' ] )