def no_gaps(curve):
    """
    Check for gaps, after ignoring any NaNs at the top and bottom.
    """
    tnt = utils.top_and_tail(curve)
    return not any(np.isnan(tnt))
Check for gaps, after ignoring any NaNs at the top and bottom.