pymovements.utils.filters.events_split_nans#

pymovements.utils.filters.events_split_nans(candidates: list[numpy.ndarray], values: ndarray) list[numpy.ndarray][source]#

Filters a list of candidates for an event-detection algorithm

Splits events if np.nans are within an event

Parameters:
  • candidates (list, list of candidates) – List of candidates; each candidate consists of a list of indices

  • values (array-like, shape (N, 1) or shape (N, 2)) – Corresponding continuous 1D/2D values time series.

Returns:

a filtered list of candidates

Return type:

list