Skip to content

Support files with no "EVENT" in their parameters#19

Open
nicolaswenk wants to merge 2 commits into
DART-Lab-LLUI:mainfrom
Motion-Lab-HE-Arc:main
Open

Support files with no "EVENT" in their parameters#19
nicolaswenk wants to merge 2 commits into
DART-Lab-LLUI:mainfrom
Motion-Lab-HE-Arc:main

Conversation

@nicolaswenk

Copy link
Copy Markdown

Prevent crashes when reading the unexisting "EVENT" parameter, when reading files with no event.

Copilot AI review requested due to automatic review settings June 9, 2026 11:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR hardens section discovery against missing parameters/EVENT data in the underlying C3D structure to avoid runtime errors.

Changes:

  • Add a guard around access to self._c3d["parameters"]["EVENT"] in _get_sections.
  • Return an empty list when EVENT parameters are absent instead of raising.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gaitalytics/io.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants