AareDAQ: fix state_busy flag in sample setter

This commit is contained in:
2025-09-25 08:55:54 +02:00
parent 76e4fa0bcd
commit 9e223d0fd6
+1 -1
View File
@@ -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)