DAQ: Offset Y for 2D raster scan only
This commit is contained in:
@@ -256,7 +256,11 @@ class AareDAQ:
|
||||
|
||||
save_smargon_position = self.__devs.smargon.readback
|
||||
|
||||
delta_mm = self.sample_geometry.smargon_nudge(Coordinate(x=r.grid_size_mm.x / 2, y=r.grid_size_mm.y / 2))
|
||||
if r.n_x > 1:
|
||||
delta_mm = self.sample_geometry.smargon_nudge(Coordinate(x=0, y=r.grid_size_mm.y / 2))
|
||||
else:
|
||||
delta_mm = Coordinate()
|
||||
|
||||
self.__devs.smargon.target = SmargonCoordinate(sh_mm=r.smargon.sh_mm + delta_mm,
|
||||
phi_deg=r.smargon.phi_deg,
|
||||
chi_deg=r.smargon.chi_deg)
|
||||
|
||||
Reference in New Issue
Block a user