def get_channel_value(encodings, channel, r):
    """ Given encodings e, 
        return the value in the tuple r that maps to the channel c
    """
    return r[encodings[channel].field] if channel in encodings else None