From 9e223d0fd600b877f21d00bf6c4ec51e3211ebb4 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Thu, 25 Sep 2025 08:55:54 +0200 Subject: [PATCH] AareDAQ: fix state_busy flag in sample setter --- daq/src/aaredaq/daq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daq/src/aaredaq/daq.py b/daq/src/aaredaq/daq.py index 1ae31760..bf97d741 100644 --- a/daq/src/aaredaq/daq.py +++ b/daq/src/aaredaq/daq.py @@ -312,7 +312,6 @@ class AareDAQ: if target is not None and target.db_id is not None: #self.__aare.sample_mounted(self.__cfg.current_sample) self.save_screenshot_db(target.db_id , f"post_mount_{target.db_id }_{self.__devs.zoom}") - self.__cfg.state_busy = False except Exception as e: self.__cfg.state_busy = False # If unmount succeeded, but mount failed @@ -334,6 +333,7 @@ class AareDAQ: raise e self.__set_state(BeamlineStateEnum.SampleAlignment) + self.__cfg.state_busy = False #if target is not None and target.location is not None: # self.__loop_center_sequence(target.db_id)