renameEvent#
- pyCGM2.Tools.btkTools.renameEvent(acq: btkAcquisition, label: str, context: str, newlabel: str, newcontext: str)#
Renames an existing event in a BTK acquisition.
- Parameters:
acq (btk.btkAcquisition) – The BTK acquisition instance containing the event.
label (str) – The current label of the event to be renamed.
context (str) – The current context of the event to be renamed.
newlabel (str) – The new label for the event.
newcontext (str) – The new context for the event.
This function searches for an event in the given acquisition that matches the specified label and context. If such an event is found, its label and context are updated to the new values provided.