Skip to content

fix: restart unwrap shifts across vacuum cell boundaries - #33

Merged
galjos merged 2 commits into
mainfrom
fix/vacuum-unwrap-reset
Sep 5, 2026
Merged

fix: restart unwrap shifts across vacuum cell boundaries#33
galjos merged 2 commits into
mainfrom
fix/vacuum-unwrap-reset

Conversation

@galjos

@galjos galjos commented Sep 2, 2026

Copy link
Copy Markdown
Member

Vacuum-to-periodic (and reverse) unwrap steps now reset image shifts to zero instead of raising ValueError, so unwrapped frame requests can cross an open first frame.

Fixes #30.

Forward and reverse unwrap now return zero shifts when either adjacent cell is vacuum, instead of raising and failing the frame request.
@galjos
galjos force-pushed the fix/vacuum-unwrap-reset branch from 57df7c7 to 993e5de Compare September 3, 2026 08:16
Camera recipe compares use approximate equality, within-5Å of O expects
CH2O across the periodic boundary, and pointer pick targets Fit-layout
coordinates.
@galjos
galjos merged commit c1629ea into main Sep 5, 2026
4 checks passed
@galjos
galjos deleted the fix/vacuum-unwrap-reset branch September 5, 2026 15:08
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.

Unwrapped coordinates crash on vacuum-to-periodic frame transitions

1 participant