GitLab will be upgraded on June 23rd evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit 037dc4f9 authored by Emmanuel Papillon's avatar Emmanuel Papillon

correct sign of shift_pos in interlaced scans

parent 9f3f3d54
......@@ -197,7 +197,11 @@ class ID11FInterlaced(FScanDiagRunner):
shut_time = self._fsh.shutter_time
mot_speed = abs(pars.acq_size) / pars.acq_time
shut_pos = shut_time * mot_speed
pars.shift_pos = shut_pos / 2.
if pars.acq_size > 0:
direction = 1.
else:
direction = -1.
pars.shift_pos = direction * shut_pos / 2.
super().validate()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment