pyomeca / ezc3d

Easy to use C3D reader/writer for C++, Python and Matlab
https://pyomeca.github.io/Documentation/ezc3d/index.html
MIT License
142 stars 44 forks source link

Events >60s not populating correctly #295

Closed KA-McDonald closed 6 months ago

KA-McDonald commented 1 year ago

Hello,

The footstrike events in my c3d are located at the following times: 57.1, 58.25, 59.51, 60.63, 61.78, 62.89, 64.02

But when exporting the time data via event_data = c['parameters']['EVENT']['TIMES']['value'], events t>60 s have errors (t - 60): 0.63, 1.78, 2.89, 4.02, 57.1, 58.25, 59.51

I'm unsure what happens when t>120 s (I do not have a file long enough to test this).

I can make amendments within my code to accommodate the issue, but any support fixing this would be appreciated for future processing of longer trials. Thanks!

pariterre commented 1 year ago

Hello there!

That is a surprising bug! I wonder if it is not simply due to the fact that time is stored in a 8-bits fashion... That would be surprising that it is exactly 60 seconds off though.

If you happen to have a c3d that I can play with, I could have a look!

pariterre commented 6 months ago

Closed as stalled