Skip to content

Fix spurious rotation back-and-forth when collecting post-scan flat f…#178

Open
decarlof wants to merge 1 commit intomasterfrom
fix/post-scan-flat-rotation-backforth
Open

Fix spurious rotation back-and-forth when collecting post-scan flat f…#178
decarlof wants to merge 1 commit intomasterfrom
fix/post-scan-flat-rotation-backforth

Conversation

@decarlof
Copy link
Copy Markdown
Member

@decarlof decarlof commented Apr 16, 2026

When SampleOutAngleEnable is set to Yes and FlatFieldMode is set to End or Both,
the rotation stage performs two unnecessary extra moves at the end of the scan resulting in rotation travels 90° → 180° → 0° instead of simply 90° → 0°. (reported as issue #177)

Fix: clear self.rotation_save before move_sample_in() in end_scan() so only the X/Y stage is moved back. ReturnRotation in the base end_scan() handles the final rotation position.

Affects all beamlines using TomoScanPSO: 2-BM, 7-BM, 13-BM, 32-ID.

…ields

(reported as issue #177)
When SampleOutAngleEnable=Yes and FlatFieldMode=End or Both, end_scan()
called move_sample_in() which restored self.rotation_save to the
end-of-scan angle. ReturnRotation then immediately moved the rotation to
rotation_start, producing an unnecessary intermediate move (e.g.
SampleOutAngle → rotation_stop → rotation_start).

Fix: clear self.rotation_save before move_sample_in() in end_scan() so
only the X/Y stage is moved back. ReturnRotation in the base end_scan()
handles the final rotation position.

Affects all beamlines using TomoScanPSO: 2-BM, 7-BM, 13-BM, 32-ID.
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