example_gait_analysis error

New project for OpenCap, which is a new software package to estimate 3D human movement dynamics from smartphone videos. OpenCap strongly relies on OpenSim.
POST REPLY
User avatar
Eliana Bieler
Posts: 3
Joined: Tue Jan 07, 2025 11:15 pm

example_gait_analysis error

Post by Eliana Bieler » Tue Jan 07, 2025 11:33 pm

Hi,

I have been running the example_gait_analysis script in colab for months now and it was working fine as of yesterday, but suddenly today I got an error at the line gait_r = gait_analysis. I tried running the code with the public example data and I got the same error. It does not matter what trim values I use. The only way I can get it to work is to change filter_frequency to 0. I have pasted the error text below. Thank you for any insight into why this is suddenly happening!

RuntimeError: std::exception in 'size_t OpenSim::TimeSeriesTable_< double >::getNearestRowIndexForTime(double const,bool const) const': Time 0.000000 is out of time range [0.016654, 6.099963]
Thrown at TimeSeriesTable.h:319 in getNearestRowIndexForTime().

User avatar
Matt Petrucci
Posts: 250
Joined: Fri Feb 24, 2012 11:49 am

Re: example_gait_analysis error

Post by Matt Petrucci » Tue Jan 14, 2025 3:17 pm

Hi Eliana,

Not sure why it would suddenly stop working...there aren't any commits that would affect these codes.

Are you importing the opencap-processing repo into your colab? Have you tried running the code with the example data in a local python environment (using the setup instructions in the readme)?

Matt

POST REPLY