Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizing planarflexors fails with LaiArnold2017 model update #21

Open
GraceEMc opened this issue Sep 1, 2022 · 6 comments
Open

Optimizing planarflexors fails with LaiArnold2017 model update #21

GraceEMc opened this issue Sep 1, 2022 · 6 comments

Comments

@GraceEMc
Copy link

GraceEMc commented Sep 1, 2022

Hi there,
Thank you for sharing your code. I am trying to run the tool using this model: https://simtk.org/frs/?group_id=1302

I am not able to optimise the gastroc, soleus and plantar flexors with the following error:
image

Do you know why this occurs?
Thanks

@modenaxe
Copy link
Owner

modenaxe commented Sep 2, 2022

Hello, the error is about indexing, so I would recommend first checking that you are looping starting from 0, if you are going through OpenSim sets.
If that's not the issue, could you please try this version of the MATLAB tool? https://github.com/modenaxe/MuscleParamOptimizer/tree/updOS4 and let me know if it works?
Cheers,
Luca

@GraceEMc
Copy link
Author

GraceEMc commented Sep 2, 2022 via email

@modenaxe
Copy link
Owner

modenaxe commented Sep 2, 2022

It could also be that the tool has troubles navigating through the knee, since some dof are coupled with flexion.
Could you verify if the issue is present also with models with a simpler knee, e.g. gait2392? At least we will know if the issue is due to the tool or to the application to the Lai model specifically.
Luca

@GraceEMc
Copy link
Author

GraceEMc commented Sep 3, 2022

Yes I think it is an issue with the model - I tried with 2 different gait2392 models and didn't have any errors.

@modenaxe
Copy link
Owner

Hi @GraceEMc , any update about this issue?

@GraceEMc
Copy link
Author

Hi @modenaxe, thanks for following up on this.
I have only be able to continue using the Lai 2017 model by avoiding adjusting the muscles: ["tibpost","gaslat","gasmed","perbrev","perlong","soleus","tibant"] which all fail. So it likely is an issue with the knee flexion. If you have any potential workarounds that would allow me to also optimize these muscles please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants