Skip to content

Add error handling to _read_header #31

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charlieforward9
Copy link

@charlieforward9 charlieforward9 commented Jun 25, 2024

This is more of a sloppy workaround than a fix. Trying to get the parser to work on 3k files with intermittent bad headers without crashing. Attempts to address #30.

This code it will log a lot of warnings about not a FIT file @ X on files with bad headers and warn file truncated? expected Y bytes, got Z @ W.

I would love to find a great workaround but the FIT protocol is pretty dense and I code much more than I read right now...

@charlieforward9 charlieforward9 marked this pull request as draft January 3, 2025 16:45
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.

1 participant