DAQ: added check in mount to see if sample is mounted. may not be needed if tell work is successful
This commit is contained in:
+15
-4
@@ -305,10 +305,21 @@ class AareDAQ:
|
||||
timeout=360,
|
||||
)
|
||||
logger.debug(f"Post tell mount, pre db input")
|
||||
self.__aare.sample_mounted(target)
|
||||
self.__cfg.current_sample = target
|
||||
if target is not None and target.db_id is not None:
|
||||
self.save_screenshot_db(target.db_id, f"sample_mounted")
|
||||
if not self.__devs.tell.get_mounted_sample():
|
||||
logger.info("No sample was mounted")
|
||||
self.__aare.sample_failed(target, failed_comment = "No sample was mounted")
|
||||
raise Exception("No sample was mounted")
|
||||
else:
|
||||
# check = self.__devs.tell.check_smart_magnet_mounted()
|
||||
# if check:
|
||||
if target is not None:
|
||||
self.__aare.sample_mounted(target)
|
||||
logger.info(f"target is mounted??? {target}")
|
||||
self.save_screenshot_db(target.db_id, f"sample_mounted")
|
||||
else:
|
||||
logger.info(f"target is None: {target}")
|
||||
self.__cfg.current_sample = target
|
||||
|
||||
|
||||
# TODO: Need to know if dry needs to happen
|
||||
|
||||
|
||||
Reference in New Issue
Block a user