DAQ/GUI: Fixes during pre-beamtime test (2)
Build and Publish / build (push) Successful in 22s

This commit is contained in:
leonarski_f committed 2025-06-17 10:44:50 +02:00
1 parent 7aeee1a029
commit a126f7ccb4
6 files changed
+45 -17

No files matched your search

+6
View File
@@ -28,6 +28,12 @@ class SampleGeometryModel(BaseModel):
def beam_size_pxl(self) -> Coordinate:
return self.beam_size_mm / self.pixel_in_mm
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
def picture_to_sample(self, pic_pxl: Coordinate) -> Coordinate:
# Relative to beam location