constructMarkerSetXml#

pyCGM2.Tools.opensimTools.constructMarkerSetXml(markersetFile, updates, output_file=None)#

Update the location of markers in an OpenSim marker set file.

Parameters:
  • markersetFile (str) – Path of the marker set file.

  • updates (dict) – New location (string "x y z") of each marker.

  • output_file (str, optional) – Output file. If None, the updated content is not written.

Returns:

bs4.BeautifulSoup – The updated XML document.