clean_flux_algorithm

tessilator.lc_analysis.clean_flux_algorithm(g)[source]

A basic algorithm that trims both sides of a contiguous data string if a condition is not satisfied, until the condition is met for the first time.

Parameters:
gIter

The outcome for each datapoint, qualified (=1) or not qualified (=0)

Returns:
firstint

The trimmed first point of the array

lastint

The trimmed last point of the array