DAQ: added screenshot wait argument to raster and loop_centre, howerever it should be in screenshot itself, to be updated
This commit is contained in:
+4
-2
@@ -1383,7 +1383,7 @@ class AareDAQ:
|
||||
number_of_cols=request.n_x,
|
||||
)
|
||||
|
||||
def __raster(self, request: RasterGridRequest, wait_for_screenshot: float | None = 0.2) -> CompletedRasterGridElem:
|
||||
def __raster(self, request: RasterGridRequest, wait_for_screenshot: float | None = 0.3) -> CompletedRasterGridElem:
|
||||
smargon_top_left =request.smargon_top_left
|
||||
self.__devs.set_smargon_pos(
|
||||
SmargonCoordinate(
|
||||
@@ -2367,7 +2367,8 @@ class AareDAQ:
|
||||
def __loop_center_sequence(
|
||||
self,
|
||||
sample_id: Optional[int] = None,
|
||||
trace_all_alc_moves: bool = False
|
||||
trace_all_alc_moves: bool = False,
|
||||
wait_screenshot_sleep_sec: float = 0.1,
|
||||
) -> LoopCenteringResult:
|
||||
|
||||
found_classes_count: dict[int, int] = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0}
|
||||
@@ -2380,6 +2381,7 @@ class AareDAQ:
|
||||
base_angles = (0, 90) if (zoom_iter % 2 == 0) else (90, 0)
|
||||
if sample_id is not None and zoom_iter == 0:
|
||||
logger.info(f"submitting to db loop center sequence for sample {sample_id}, zoom={zoom_value}")
|
||||
time.sleep(wait_screenshot_sleep_sec)
|
||||
self.save_screenshot_db(sample_id, f"pre_alc")
|
||||
|
||||
while attempt < max_attempt:
|
||||
|
||||
Reference in New Issue
Block a user