Skip to content

fails to open sample c3d trial (via Python wrapper) #13

@jjnurminen

Description

@jjnurminen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions