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

Check condition for writing c3d file #277

Closed beebuzz002 closed 1 year ago

beebuzz002 commented 1 year ago

I feel that this method is a smoother alternative. This will be able to perform the check without any errors caused and would not rely on other functions to smooth the value out.


This change is Reviewable

beebuzz002 commented 1 year ago

Hi @pariterre, The goal is to compare integer points only, since all 4 values (number of analog frames, number of point frames, analog frame rate and point frame rate) are expected to be integers. The use of multiplication also ensures that the resulting values are integers.