Page 1 of 1

example_gait_analysis error

Posted: Tue Jan 07, 2025 11:33 pm
by eliana.bieler
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().

Re: example_gait_analysis error

Posted: Tue Jan 14, 2025 3:17 pm
by mpetrucc
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