DAQ: tries to create ml_bounding_box, if it fails moves to 90 degrees and updates file_prefix.

This commit is contained in:
leonarski_f committed 2025-07-15 09:57:17 +02:00
1 parent 344190831b
commit 1468a1211c
1 file changed
+6 -2
+6 -2
View File
@@ -339,9 +339,13 @@ class AareDAQ:
if sample is None:
raise Exception("Sample must be mounted to auto center")
self.__devs.aerotech.move(grid.omega_deg, wait=True)
old_prefix = grid.file_prefix
r = self.__ml_bounding_box(sample.db_id, grid.file_prefix)
geom = self.sample_geometry
r = self.__ml_bounding_box(sample.db_id, f"{old_prefix}_ml_{geom.omega_deg}deg")
if r is None:
self.__devs.aerotech.move(geom.omega_deg + 90.0, wait=True)
time.sleep(0.2)
r = self.__ml_bounding_box(sample.db_id, f"{old_prefix}_ml_{geom.omega_deg + 90.0}deg")
if r is not None:
geom = self.sample_geometry
grid.smargon = r.smargon