pymovements.datasets.judo1000.JuDo1000.detect_events#
- JuDo1000.detect_events(method: EventDetectionCallable, eye: str | None = 'auto', clear: bool = False, verbose: bool = True, **kwargs) 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
verbose (bool) – If
True, show progress bar.**kwargs – Additional keyword arguments to be passed to the event detection method.
- Raises:
AttributeError – If gaze files have not been loaded yet or gaze files do not contain the right columns.