Skip to content

fix: recompute packet wrap shifts from float32 positions - #32

Merged
galjos merged 1 commit into
mainfrom
fix/float32-wrap-shifts
Sep 5, 2026
Merged

fix: recompute packet wrap shifts from float32 positions#32
galjos merged 1 commit into
mainfrom
fix/float32-wrap-shifts

Conversation

@galjos

@galjos galjos commented Sep 2, 2026

Copy link
Copy Markdown
Member

Centered image shifts were computed in float64 and then shipped with float32 positions. At the half-cell boundary those disagree by one lattice vector. The encoder now recomputes shifts from the float32 positions stored in the packet.

Fixes #29.

Shifts were computed in float64 then paired with quantized positions, which disagrees at the half-cell boundary. Recompute shifts from the float32 coordinates the packet stores.
@galjos
galjos force-pushed the fix/float32-wrap-shifts branch from 056d5f6 to aa96bf2 Compare September 5, 2026 20:15
@galjos
galjos merged commit cf4ee6a into main Sep 5, 2026
4 checks passed
@galjos
galjos deleted the fix/float32-wrap-shifts branch September 5, 2026 20:15
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.

float64 wrap shifts disagree with float32 packet positions at the half-cell boundary

1 participant