-
Notifications
You must be signed in to change notification settings - Fork 72
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
core: Fix parsing for hex denseAttrs #3239
Conversation
7dd5ee7
to
4cc5297
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3239 +/- ##
==========================================
- Coverage 89.91% 89.90% -0.02%
==========================================
Files 440 440
Lines 55290 55347 +57
Branches 8627 8635 +8
==========================================
+ Hits 49716 49761 +45
- Misses 4149 4159 +10
- Partials 1425 1427 +2 ☔ View full report in Codecov by Sentry. |
Could you please add a unit test that fails before your patch, and works after? |
@superlopuh Added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thank you!
Thanks @vinayakdsci @superlopuh ! |
Fixes #2876. The original parsing implementation for hex denseAttrs uses format strings in `struct.unpack_from()`, but the format strings actually do not include the count of the chunks contained in the bytes list. This patch fixes this behavior by embedding the number of chunks in the respective format string.
Fixes #2876.
The original parsing implementation for hex denseAttrs uses format strings in
struct.unpack_from()
, but the format strings actually do not include the count of the chunks contained in the bytes list.This patch fixes this behavior by embedding the number of chunks in the respective format string.