smartCreateEvent#
- pyCGM2.Tools.btkTools.smartCreateEvent(acq: btkAcquisition, label: str, context: str, frame: int, type: str = 'Automatic', subject: str = '', desc: str = '', id: int = 0)#
Creates a new event in the BTK acquisition.
- Parameters:
acq (btk.btkAcquisition) – BTK acquisition instance.
label (str) – Label of the event.
context (str) – Context of the event (e.g., ‘Left’, ‘Right’).
frame (int) – Frame number where the event occurs.
type (str, optional) – Type of the event (e.g., ‘Automatic’, ‘Manual’). Defaults to ‘Automatic’.
subject (str, optional) – Name of the subject associated with the event. Defaults to an empty string.
desc (str, optional) – Description of the event. Defaults to an empty string.
id (int, optional) – id integer (0,1 or 2 for general, Foot Strike and Foot off respectively). Defaults to 0.
- Returns:
None – The event is added directly to the acquisition object.