Dear OpenCap Team,
I am currently using the example_kinetics.py script you provide on GitHub to run dynamic simulations on a set of data I collected.
The script is executing flawlessly so far and during the final stages of the code "Computing knee adduction moments" is displayed in the console.
For one trial so far I have found a .sto file "inverse_dynamics" in my results folder which included data for knee adduction moments.
However for all other trials this .sto file is lacking and the "kinetics_trialname" .MOT file does not contain data on knee adduction moments.
What could be the cause for this? I have checked all possible directories on my drive to make sure I did not overlook the desired .sto file.
I have attached screenshots of the console output and the current content of my results folder.
Thank you in advance for your support.
Best
Bernhard
Where to find KAM data
- Bernhard Faerber
- Posts: 27
- Joined: Thu Nov 10, 2022 1:57 am
Where to find KAM data
- Attachments
-
- current results folder kinetics.jpeg (37.98 KiB) Viewed 764 times
-
- console output kinetics.jpeg (402.46 KiB) Viewed 764 times
Tags:
- Antoine Falisse
- Posts: 438
- Joined: Wed Jan 07, 2015 2:21 am
Re: Where to find KAM data
Hey,
The KAM results are saved in the optimaltrajectories.npy file.
Best,
Antoine
The KAM results are saved in the optimaltrajectories.npy file.
Best,
Antoine
- Bernhard Faerber
- Posts: 27
- Joined: Thu Nov 10, 2022 1:57 am
Re: Where to find KAM data
Hi Antoine,
thanks for your swift reply.
I am having some trouble when trying to access the data stored in that .npy file.
I'm currently working in spyder IDE an when trying open up the loaded data I get an error "object arrays without shape are not supported".
I can print the contents of the loaded .npy file, but I haven't been able to extract any data of interest to me so far.
Can you share some insights as to how you have you been working with these files?
Best
Bernhard
thanks for your swift reply.
I am having some trouble when trying to access the data stored in that .npy file.
I'm currently working in spyder IDE an when trying open up the loaded data I get an error "object arrays without shape are not supported".
I can print the contents of the loaded .npy file, but I haven't been able to extract any data of interest to me so far.
Can you share some insights as to how you have you been working with these files?
Best
Bernhard
- Antoine Falisse
- Posts: 438
- Joined: Wed Jan 07, 2015 2:21 am
Re: Where to find KAM data
Hi, this should help: https://github.com/stanfordnmbl/opencap ... D.py#L1854
Best, Antoine
Best, Antoine
- Bernhard Faerber
- Posts: 27
- Joined: Thu Nov 10, 2022 1:57 am
Re: Where to find KAM data
Hi, that's exactly what I was searching for. Thank you!
I have selected the time_window for each trial based on force plate data from a marker-based system I used simultaneously alongside OpenCap (I aligned the data from both systems prior to this).
These time windowa are ~600ms long for most trials I simulated so far.
When inspecting the kinetic & GRF data, the files contain only ~60 lines of data, which makes we wonder:
Which frequency is the simulated kinetic & GRF data "sampled"/simulated at?
Thanks in advance.
Best
Bernhard
I have selected the time_window for each trial based on force plate data from a marker-based system I used simultaneously alongside OpenCap (I aligned the data from both systems prior to this).
These time windowa are ~600ms long for most trials I simulated so far.
When inspecting the kinetic & GRF data, the files contain only ~60 lines of data, which makes we wonder:
Which frequency is the simulated kinetic & GRF data "sampled"/simulated at?
Thanks in advance.
Best
Bernhard
- Antoine Falisse
- Posts: 438
- Joined: Wed Jan 07, 2015 2:21 am