-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Hi,
I have used the btk Python wrapper successfully in the past.
Now I downloaded some sample c3d data from:
https://www.c3d.org/data/sample03.zip
I extracted the trials and tried the following code:
import btk
c3dfile = "gait-pig.c3d"
reader = btk.btkAcquisitionFileReader()
reader.SetFilename(c3dfile)
reader.Update()
However this causes the Python interpreter to crash. I get the following print at the console:
[BTK WARNING] gait-pig.c3d - The number of blocks to be read in the parameter section is different than the number of blocks read. The value kept is the number of blocks read.
[BTK ERROR] Impossible to set a scaling factor to 0.
[BTK ERROR] Impossible to set a scaling factor to 0.
[BTK ERROR] Impossible to set a scaling factor to 0.
[BTK ERROR] Impossible to set a scaling factor to 0.
[BTK ERROR] Impossible to set a scaling factor to 0.
[BTK ERROR] Impossible to set a scaling factor to 0.
I'd also note that the file opens just fine in Mokka, which uses btk. So maybe the problem is with the Python wrapper?