-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing valid c3d file fails #44
Comments
Could you provide the full trace back? And I am not sure, if that is valid based on the c3d format. @MattiasFredriksson Do you know if pyc3d assumes/required the group names to be unique? |
I checked and it seems to be invalid, see here at page 36 "Each group name must be unique": |
Eventually I modified add_group() such that if group name is already exist, it auto-generates different name ('PROCESSING' --> 'PROCESSING1'). Files are now readable. |
Great! Could you share the modifications you made? Ideally as a merge request. Then we can discuss, if we want to add this workaround as well. |
Interesting case where the file contains two GROUP entries with the same name. I think supporting such cases would be good as long as a warning message is registered when it occurs as to inform users when the file does not follow the standard. It would also be good to follow the 'parameter naming convention' when generating the names, namely: PROCESSING, PROCESSING2, PROCESSING3... I'm not sure every file would follow that naming convention but it would be good to stick with a similar convention as the examples in the manual (see 'Additional Parameter' section). |
p2s1.zip
While trying to parse this file I get
KeyError: 'PROCESSING'
It seems that the group named PROCESSISNG appears twice in the header. Is the invalid according to the c3d format?
The text was updated successfully, but these errors were encountered: