Hello,
I am setting up a sensitivity analysis and most of the parameters work. Currently I keep getting the error of
No appropriate method, property, or field getMaximumShorteningVelocity for class
org.opensim.modeling.Muscle.
Error in MainAPIScript7 (line 103)
origMaxShortVelocity = origCMCModel.getMuscles().get(n1-1).getMaximumShorteningVelocity();
Can anyone help me with why this is? Here is the part of the code that gets the error.
origMaxShortVelocity = origCMCModel.getMuscles().get(n1-1).getMaximumShorteningVelocity();
newMaxShortVelocity = MSVAdj.*origMaxShortVelocity;
newCMCModel.getMuscles().get(n1-1).setMaximumShorteningVelocity(newMaxShortVelocity);
Error Help
Re: Error Help
Code: Select all
model = Model('arm26.osim')
muscle = model.getMuscle().get(1)
muscle.setMaxContractionVelocity(12)