find_gc_boundaries#
- patato.utils.time_series_analysis.find_gc_boundaries(mask, data_so2, window=10, display=False, sigma=2, skip_start=0, sign=1)[source]#
Find the runs in the time series at which the breathing gas of the animal was changed.
- Parameters:
mask (array_like) – A boolean array which can be applied to the time series.
data_so2 (SingleParameterData) – The time series of the SO2 data.
window (int, optional) – The window size to use for the convolution.
display (bool, optional) – Whether to display the results.
sigma (float, optional) – The sigma to use for the convolution.
skip_start (int, optional) – The number of runs to skip at the start of the time series.
sign (int, optional) – The sign of the change in the time series.
- Returns:
List of integers with the indices of the detected gas changes.
- Return type:
list