Skip to content

Bugfix/heatmap serialization#5

Merged
CaseyHofland merged 3 commits intomasterfrom
bugfix/heatmap_serialization
Aug 6, 2025
Merged

Bugfix/heatmap serialization#5
CaseyHofland merged 3 commits intomasterfrom
bugfix/heatmap_serialization

Conversation

@CaseyHofland
Copy link
Contributor

There were 2 issues to address, 1 with reading and 1 with writing.

Reading: if the offset needed to be moved (due to a negative value in the strengths array), the current position of the offset nor the position of the bounds were taken into account.

Writing: if the very first value was not at the starting position of the heatmap, it would incorrectly move this value one unit to the left and all consecutive units with it. This has been fixed by moving the position after the offset has been copied instead of before.

There were 2 issues to address, 1 with reading and 1 with writing.

Reading: if the offset needed to be moved (due to a negative value in the strengths array), the current position of the offset nor the position of the bounds were taken into account.

Writing: if the very first value was not at the starting position of the heatmap, it would incorrectly move this value one unit to the left and all consecutive units with it. This has been fixed by moving the position after the offset has been copied instead of before.
@CaseyHofland CaseyHofland merged commit 570db6f into master Aug 6, 2025
1 check passed
@CaseyHofland CaseyHofland deleted the bugfix/heatmap_serialization branch August 6, 2025 22:50
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