Issue Recognising Umberger Metabolic Probes in 4.0

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Aaron Fox
Posts: 289
Joined: Sun Aug 06, 2017 10:54 pm

Issue Recognising Umberger Metabolic Probes in 4.0

Post by Aaron Fox » Tue Jan 29, 2019 8:31 pm

Hi All,

I'm having some issues with CMC not recognising the metabolic probeset I have in my model, in that when CMC runs it starts up giving out a warning for each muscle (e.g. WARNING: Umberger2010MuscleMetabolicsProbe_MetabolicMuscleParameter: Muscle 'psoas_r' not found in model. Ignoring...), and subsequently the probe reporter doesn't give out any results. I am using some existing code that did work in 3.3 and am wondering whether there are any differences with how these are added/written into the model?

I've been able to create the probe set using relevant commands in Matlab (i.e. Umberger2010MuscleMetabolicsProbe, set_probe_operation, set_report_total_metabolics_only, setName, setEnabled and addProbe), and I believe this is recongised - hence I think the error is in how I've added the specific muscles components into the probe set (I've done this using the addMuscle command). I've noticed if I open the model in the GUI after doing this those that the probe set seems to have no components (listed as 'empty').

The model file is apparently too large to attach here so I've attached a screenshot of what the probe set code looks like to hopefully get some clarity on whether there is an issue there.

Thanks,

Aaron
Attachments
ModelCode.PNG
Screenshot of probe set code
ModelCode.PNG (87.98 KiB) Viewed 578 times

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Issue Recognising Umberger Metabolic Probes in 4.0

Post by jimmy d » Fri Feb 08, 2019 12:22 pm

The section of code that does the check seems to be here

It does sound like the the 'live' model is not getting updated to have the probes in it (hence the list being 'empty'). Does the code perform an .initSystem() after it has added the probes? perhaps if you post a folder with the example code and a model we could debug.

-j

User avatar
Aaron Fox
Posts: 289
Joined: Sun Aug 06, 2017 10:54 pm

Re: Issue Recognising Umberger Metabolic Probes in 4.0

Post by Aaron Fox » Sun Feb 10, 2019 3:38 pm

Thanks for the point in the right direction James. It seems the response of that section of code is to turn the probes off, which looks like what is happening. I don't think I have an initSystem() prompt after adding the probes so I will add and see if it resolves. If not I'll post some extra code for some debugging help.

Aaron

User avatar
Dmytro Radevych
Posts: 3
Joined: Tue Dec 04, 2018 12:43 pm

Re: Issue Recognising Umberger Metabolic Probes in 4.0

Post by Dmytro Radevych » Wed Feb 13, 2019 9:39 am

Hello,

I have the same issue with a model I'm using. As I run through CMC I get the same warning for every muscle in my model:

WARNING: Umberger2010MuscleMetabolicsProbe_MetabolicMuscleParameter: Muscle 'addbrev_r' not found in model. Ignoring...

I have added the metabolic probes with python script from tutorial Gait10dof18musc and I am using the Rajagopal2015 model.

Can I rely on the metabolic calculations, which I get from CMC, in spite of all warnings? Or do I need to debbug the model somehow?

Dmytro
Attachments
myModel.7z
(365.5 KiB) Downloaded 12 times

User avatar
Aaron Fox
Posts: 289
Joined: Sun Aug 06, 2017 10:54 pm

Re: Issue Recognising Umberger Metabolic Probes in 4.0

Post by Aaron Fox » Wed Mar 13, 2019 10:48 pm

Hi James,

As an update to this I'm still having the same troubles with the connection of the probe muscles to the model muscles. I've tried using the .initSystem() command as well as the .finalizeConnections() command but to no avail. The issue seems to be, as you've pointed out, that at that point in the code the name of the probe muscle (e.g. addbrev_r) doesn't match up with any muscle names in the model. Weirdly though, if I load the model into Matlab and use the same command (i.e. OsimModel.getMuscles().getIndex('addbrev_r')), it outputs an index value that should align with matching these up in that code (i.e. it is 0 or greater).

Despite it seemingly all matching up I'm wondering with the update to 4.0 whether there is some difference with the naming conventions for muscles here that I need to change when allocating the metabolic probe parameter set? All the tests I can think of running suggest that there are muscles called 'X' in the model, and this is what they are called in the probe parameter set, but they don't seem to be talking to one another when running the analyze tool.

Any suggestions would be much appreciated!

Thanks,

Aaron

User avatar
Scott Brennan
Posts: 2
Joined: Wed Sep 05, 2018 5:27 am

Re: Issue Recognising Umberger Metabolic Probes in 4.0

Post by Scott Brennan » Thu Apr 25, 2019 8:14 am

I'm having the same issue running the AnalyzeTool with the Metabolics Probe attached. I'm using the LaiArnold2017 model where I have included the muscles from my model in the same probe format as the Gait10dof18Musc example. However, when I try to run one of the tools I get this warning for every muscle: "WARNING: Umberger2010MuscleMetabolicsProbe_MetabolicMuscleParameter: Muscle 'vaslat140_l' not found in model. Ignoring...". The names match up but I haven't figured out a way for it to recognise that the muscles in ForceSet are the same as ProbeSet.

POST REPLY