def lpp_onetransit(tcedata, mapInfo, ntransit):
    '\n    Chop down the full time series to one orbital period.\n    Then gather the lpp value for that one transit.\n    '
    startTime = (tcedata.time[0] + (ntransit * tcedata.period))
    endTime = ((tcedata.time[0] + ((ntransit + 1) * tcedata.period)) + (3 / 24.0))
    want = ((tcedata.time >= startTime) & (tcedata.time <= endTime))
    newtime = tcedata.time[want]
    newflux = tcedata.flux[want]
    nExpCad = ((tcedata.time[(- 1)] - tcedata.time[0]) / tcedata.period)
    if len((newtime > (nExpCad * 0.75))):
        onetransit = copy.deepcopy(tcedata)
        onetransit.time = newtime
        onetransit.flux = newflux
        (normTLpp, rawTLpp, transformedTr) = computeLPPTransitMetric(onetransit, mapInfo)
    else:
        normTLpp = np.nan
        rawTLpp = np.nan
    return (normTLpp, rawTLpp)
Chop down the full time series to one orbital period.
Then gather the lpp value for that one transit.
def lpp_onetransit(tcedata, mapInfo, ntransit):
    '\n    Chop down the full time series to one orbital period.\n    Then gather the lpp value for that one transit.\n    '
    startTime = (tcedata.time[0] + (ntransit * tcedata.period))
    endTime = ((tcedata.time[0] + ((ntransit + 1) * tcedata.period)) + (3 / 24.0))
    want = ((tcedata.time >= startTime) & (tcedata.time <= endTime))
    newtime = tcedata.time[want]
    newflux = tcedata.flux[want]
    nExpCad = ((tcedata.time[(- 1)] - tcedata.time[0]) / tcedata.period)
    if len((newtime > (nExpCad * 0.75))):
        onetransit = copy.deepcopy(tcedata)
        onetransit.time = newtime
        onetransit.flux = newflux
        (normTLpp, rawTLpp, transformedTr) = computeLPPTransitMetric(onetransit, mapInfo)
    else:
        normTLpp = np.nan
        rawTLpp = np.nan
    return (normTLpp, rawTLpp)