def stop_audit(e):
    """
    Return True if we should stop audit.

    (I.e., if some measurement is Open and Active).
    """

    for mid in e.mids:
        if e.status_tm[e.stage_time][mid]=="Open" and \
           e.sampling_mode_m[mid]=="Active":
            return False
    return True