pymovements.gaze.GazeDataFrame.compute_event_properties#
- GazeDataFrame.compute_event_properties(event_properties: str | tuple[str, dict[str, Any]] | list[str | tuple[str, dict[str, Any]]], name: str | None = None) None[source]#
Calculate event properties for given events.
The calculated event properties are added as columns to
events.- Parameters:
event_properties (str | tuple[str, dict[str, Any]] | list[str | tuple[str, dict[str, Any]]]) – The event properties to compute.
name (str | None) – Process only events that match the name. (default: None)
- Raises:
InvalidProperty – If
property_nameis not a valid property. Seepymovements.events.event_propertiesfor an overview of supported properties.RuntimeError – If specified event name
nameis missing fromevents.ValueError – If the computed property already exists as a column in
events.