smartWriter#

pyCGM2.Tools.btkTools.smartWriter(acq: btkAcquisition, filename: str, extension: str | None = None)#

Write a BTK acquisition instance to a C3D or other specified format.

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

  • filename (str) – Filename with its path.

  • extension (str, optional) – File format extension (default: C3D).

Returns:

str – Filename of the written file.