diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_optics_mixin.py b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_optics_mixin.py index 42d9167..3956aa5 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_optics_mixin.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni_optics_mixin.py @@ -30,8 +30,17 @@ class FlomniOpticsMixin: # move rotation stage to zero to avoid problems with wires umv(dev.fsamroy, 0) - fttrx_in = self._get_user_param_safe("feyex", "fttrx_in") - umv(dev.fttrx1, fttrx_in) + + if "fttrx1" not in dev: + if not self.OMNYTools.yesno( + "Device 'fttrx1' does not exist in the current config, so it " + "can't be moved out of the way. Continue anyway?" + ): + print("Aborting feye_out(): fttrx1 not moved.") + return + else: + fttrx_in = self._get_user_param_safe("feyex", "fttrx_in") + umv(dev.fttrx1, fttrx_in) def feye_in(self): bec.queue.next_dataset_number += 1