Page 1 of 1

Error in changeSessionMetadata.py

Posted: Wed Nov 15, 2023 12:49 am
by achermann1
Hi all,

I tried to update my recordings to the new marker augmenter model 0.3.
For this I followed the steps on this video: https://www.youtube.com/watch?v=Mk3KPo79_eQ
However in the first step (changeSessionMetadata.py) it already fails.

Output:
Could not find openSimModel in existing metadata, trying to add it.
Added LaiUhlrich2022_shoulder to settings in metadata
Could not find augmentermodel in existing metadata, trying to add it.
Added v0.3 to settings in metadata
Changing metadata failed.


Any idea what could have gone wrong or how to fix it?
Many thanks in advance.
Basil

Re: Error in changeSessionMetadata.py

Posted: Wed Nov 15, 2023 4:48 pm
by antoinefalisse
hi,

Could you try running 1. here before running the script?
https://github.com/stanfordnmbl/opencap ... popencapai

keep us posted,
Antoine

Re: Error in changeSessionMetadata.py

Posted: Thu Nov 16, 2023 12:45 am
by achermann1
Hi Antoine,

thanks for the quick reply.

You mean?
1) Authenticate and save an environment variable by running Examples/createAuthenticationEnvFile.py. You can proceed without this, but you will be required to log in every time you run a script.

I did and tried to run changeSessionMetadata.py again.
It still returns the same log in the terminal, just without asking for login credentials.

Best, Basil

Re: Error in changeSessionMetadata.py

Posted: Thu Nov 16, 2023 11:29 am
by suhlrich
can you provide the session id so we can reproduce?

Thanks,
scott

Re: Error in changeSessionMetadata.py

Posted: Thu Nov 16, 2023 2:16 pm
by achermann1
72466198-253e-46f6-8ec5-384e14bc1df6

Thanks!

Re: Error in changeSessionMetadata.py

Posted: Thu Nov 16, 2023 4:03 pm
by suhlrich
It worked fine for me. Have you pulled the latest version of the code from github?

Re: Error in changeSessionMetadata.py

Posted: Fri Nov 17, 2023 8:07 am
by achermann1
Hi all

Thank you very much! I had to setup my conda environment again.
changeSessionMetadata.py works fine now.

Also reprocessSessions.py looks but except for the inverse kinematics.
There I get "tuple index out of range"

OpenSimData -> Kinematics results in an empty folder.

Re: Error in changeSessionMetadata.py

Posted: Fri Nov 17, 2023 12:41 pm
by suhlrich
Try dropping breakpoints in the main.py function prior to inverse kinematics to see what is happening.