def fraction_not_nans(curve):
    """
    Returns the fraction of the curve extents that are good (non-nan data).
    """
    return 1 - (len(np.extract(np.isnan(curve), curve)) / len(curve))
Returns the fraction of the curve extents that are good (non-nan data).