def _get_baseline(p):
    """Helper to extract baseline from params"""
    if p.baseline == 'individual':
        baseline = (p.bmin, p.bmax)
    else:
        baseline = p.baseline
    return baseline