AnalysesXmlCgmProcedure#

class pyCGM2.Model.Opensim.interface.procedures.analysisReport.opensimAnalysesInterfaceProcedure.AnalysesXmlCgmProcedure(DATA_PATH: str, scaledOsimName: str, resultsDirectory: str | None, modelVersion: str)#

Specialized procedure for handling analyses in OpenSim, specifically tailored for CGM models.

This class extends AnalysesXmlProcedure to include configurations and customizations necessary for CGM model versions in various analyses within OpenSim.

Parameters:
  • DATA_PATH (str) – Path to the data directory.

  • scaledOsimName (str) – Name of the scaled OpenSim model file.

  • resultsDirectory (Optional[str]) – Directory for storing results. If None, defaults to DATA_PATH.

  • modelVersion (str) – The version of the CGM model to be used.

__init__(DATA_PATH: str, scaledOsimName: str, resultsDirectory: str | None, modelVersion: str)#

Methods

__init__(DATA_PATH, scaledOsimName, ...)

finalize()

Finalizes the process, including renaming and cleanup of the setup files.

getXml()

Retrieves the XML associated with the procedure.

prepareTrial_fromBtkAcq(acq, dynamicFile, ...)

Prepares the trial data from a BTK acquisition for analysis.

prepareTrial_fromMotFiles(kinematicMotFile, ...)

Prepares the trial data from MOT files for analysis.

prepareXml()

Prepares the XML configuration for the analysis in OpenSim.

run()

Executes the analysis using the configured XML files.

setFrameRange(begin, end)

Sets the frame range for the analysis.

setModelVersion(modelVersion)

Sets the model version.

setResultsDirname(dirname)

Sets the directory name where the results will be stored.

setSetupFiles(analysisToolTemplateFile, ...)

Sets up the file paths for the analysis tool and, optionally, the external load file.

setTimeRange(begin, end)

Sets the time range for the analysis.

finalize()#

Finalizes the process, including renaming and cleanup of the setup files.

prepareXml()#

Prepares the XML configuration for the analysis in OpenSim.