DAQ/GUI: update to version 0.2.62 - changed how raster scan works so always relative to top left corner of grid. This is then corrected in the appropriate places and has been updated in the visualiser

This commit is contained in:
leonarski_f committed 2025-11-25 14:46:39 +01:00
1 parent 3f8f51d74a
commit 53e941f4e4
12 files changed
+203 -147

No files matched your search

+5
View File
@@ -44,6 +44,11 @@ class SampleGeometryModel(BaseModel):
beam_pxl = (beam_mm - self.aerotech) / self.pixel_in_mm
return beam_pxl + self.beam_location_pxl
def translate_smargon(self, coord: Coordinate) -> SmargonCoordinate:
return SmargonCoordinate(sh_mm=self.smargon.sh_mm + self.smargon_nudge(coord),
phi_deg=self.smargon.phi_deg,
chi_deg=self.smargon.chi_deg)
def smargon_nudge(self, coord: Coordinate) -> Coordinate:
phi = np.radians(np.around(self.smargon.phi_deg, decimals=1))
chi = np.radians(np.around(self.smargon.chi_deg, decimals=1))