Skip to content

Assertionerror #20

@Nielssss99

Description

@Nielssss99

Hey

During the use of the fitdecode module I encountered the following AssertionError:

Traceback (most recent call last):
File "C:\Users\niels\OneDrive\Documenten\Metec\Metec_python\unpack_fit_niels.py", line 35, in
for frame in fit_file:
File "C:\Python\Python39\lib\site-packages\fitdecode\reader.py", line 232, in iter
yield from self._read_next()
File "C:\Python\Python39\lib\site-packages\fitdecode\reader.py", line 369, in _read_next
assert self._chunk_size <= self._body_bytes_left
AssertionError

The _chunk_size is 14 and _body_bytes_left is 12.

What's happening here and what's the best way to solve the problem? Ignoring the AssertionError seems to work, but I am not completely sure whether this is desirable at all.

Niels

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions