def is_channel(mm):
    """Check whether the measurement was performed in the channel

    If the chip region is not set, then it is assumed to be a
    channel measurement (for backwards compatibility and user-
    friendliness).
    """
    if 'setup' in mm.config and 'chip region' in mm.config['setup']:
        region = mm.config['setup']['chip region']
        if region == 'channel':
            return True
        else:
            return False
    else:
        return True
