Problem adding an Analysis to a Model using API from Python
Posted: Thu Feb 08, 2018 3:01 pm
Hi! I'm using the 3.3 API with python. This example:
throws:
Any idea as to why? Is there a workaround for this? The idea is to append a bunch of Analyses to a Model and then feed it to an AnalyzeTool.
Code: Select all
import opensim
m = opensim.Model()
a = opensim.MuscleAnalysis()
m.addAnalysis(a)
Code: Select all
/usr/local/lib/python2.7/dist-packages/opensim-3.3-py2.7.egg/opensim/opensim.pyc in addAnalysis(self, analysis)
69848 val = _opensim.Model_addAnalysis(self, analysis)
69849
> 69850 args[0]._markAdopted()
69851
69852
NameError: global name 'args' is not defined