pymovements.gaze.GazeDataFrame.detect#
- GazeDataFrame.detect(method: Callable[..., pm.EventDataFrame] | str, *, eye: str = 'auto', clear: bool = False, **kwargs: Any) None[source]#
Detect events by applying a specific event detection method.
- Parameters:
method (EventDetectionCallable) – The event detection method to be applied.
eye (str) – Select which eye to choose. Valid options are
auto,left,rightorNone. Ifautois passed, eye is inferred in the order['right', 'left', 'eye']from the availablegazedataframe columns.clear (bool) –
- If
True, event DataFrame will be overwritten with new DataFrame instead of being merged into the existing one.
- If
**kwargs – Additional keyword arguments to be passed to the event detection method.