fitdecode icon indicating copy to clipboard operation
fitdecode copied to clipboard

Assertionerror

Open Nielssss99 opened this issue 2 years ago • 3 comments

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

Nielssss99 avatar Nov 11 '21 07:11 Nielssss99

Thanks for reporting this!

Would you mind providing the .FIT file (here or PM)? It could help.

polyvertex avatar Nov 14 '21 18:11 polyvertex

Github seems not to support .fit files, can I mail them to you?

Nielssss99 avatar Nov 18 '21 09:11 Nielssss99

@Nielssss99 what about you upload to your google drive and share from there?

Or https://www.sendgb.com/ (90 days storage)

HaleTom avatar Jul 04 '23 05:07 HaleTom