getStartEndEvents#
- pyCGM2.Tools.btkTools.getStartEndEvents(acq: btkAcquisition, context: str, startLabel: str = 'Start', endLabel: str = 'End')#
Retrieves the frame numbers of start and end events based on their context and labels.
- Parameters:
acq (btk.btkAcquisition) – BTK acquisition instance.
context (str) – Context of the events.
startLabel (str, optional) – Label of the start event. Defaults to “Start”.
endLabel (str, optional) – Label of the end event. Defaults to “End”.
- Returns:
tuple – Frame numbers of the start and end events, if they exist.