Skip to content

Let completed FIT files be parsed again - #162

Open
Bolt4243 wants to merge 1 commit into
dtcooper:masterfrom
Bolt4243:fix/idempotent-parse
Open

Bolt4243 wants to merge 1 commit into
dtcooper:masterfrom
Bolt4243:fix/idempotent-parse

Conversation

@Bolt4243

Copy link
Copy Markdown

FitFile closes its input after parsing completes, but a later call to the public parse() method tries to read from that closed state and raises AttributeError. This also happens after the messages property finishes parsing.

Return immediately when the cached file is already complete. The existing cached messages remain available, and bundled-file regressions cover both completion paths.

Tests: full unittest suite, workflow flake8 checks, and coverage run with 93% total coverage.

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