def computeLPPTransitMetric(data, mapInfo):
    '\n    This function takes a data class with light curve info\n    and the mapInfo with information about the mapping to use.\n    It then returns a lpp metric value.\n    '
    (binFlux, binPhase) = foldBinLightCurve(data, mapInfo.ntrfr, mapInfo.npts)
    (rawTLpp, transformedTransit) = computeRawLPPTransitMetric(binFlux, mapInfo)
    normTLpp = periodNormalLPPTransitMetric(rawTLpp, np.array([data.period, data.mes]), mapInfo)
    return (normTLpp, rawTLpp, transformedTransit)
This function takes a data class with light curve info
and the mapInfo with information about the mapping to use.
It then returns a lpp metric value.
def computeLPPTransitMetric(data, mapInfo):
    '\n    This function takes a data class with light curve info\n    and the mapInfo with information about the mapping to use.\n    It then returns a lpp metric value.\n    '
    (binFlux, binPhase) = foldBinLightCurve(data, mapInfo.ntrfr, mapInfo.npts)
    (rawTLpp, transformedTransit) = computeRawLPPTransitMetric(binFlux, mapInfo)
    normTLpp = periodNormalLPPTransitMetric(rawTLpp, np.array([data.period, data.mes]), mapInfo)
    return (normTLpp, rawTLpp, transformedTransit)