isEventExist#

pyCGM2.Tools.btkTools.isEventExist(acq: btkAcquisition, label: str, context: str)#

Checks if an event with the specified label and context exists in the acquisition.

Parameters:
  • acq (btk.btkAcquisition) – BTK acquisition instance.

  • label (str) – The label of the event to check for.

  • context (str) – The context of the event to check for.

Returns:

bool – True if the event exists, False otherwise.