GUI: Move sample in Smargon Z with shift+click

This commit is contained in:
leonarski_f committed 2025-06-17 11:00:29 +02:00
1 parent a126f7ccb4
commit 4e15624036
3 files changed
+7 -2

No files matched your search

-1
View File
@@ -31,7 +31,6 @@ class SampleGeometryModel(BaseModel):
def smargon_z(self, pic_y: float) -> Coordinate:
y_mm = (pic_y - self.beam_location_pxl.y) * self.pixel_in_mm
print("Moving by ", y_mm, "mm in z direction.")
return self.smargon.sh_mm + self.smargon_nudge(Coordinate(z=y_mm))
# This goes from image coordinates to relative beam coordinates in image plane