From 6722d1573aad40c04f097f113577e345fda0461a Mon Sep 17 00:00:00 2001 From: x12sa Date: Fri, 10 Jul 2026 09:17:20 +0200 Subject: [PATCH] reset manual shift and auto set fovx after xray align --- .../bec_ipython_client/plugins/flomni/x_ray_eye_align.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/x_ray_eye_align.py b/csaxs_bec/bec_ipython_client/plugins/flomni/x_ray_eye_align.py index edc0e76..5119676 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/x_ray_eye_align.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/x_ray_eye_align.py @@ -203,6 +203,7 @@ class XrayEyeAlign: # there. self.flomni.reset_correction() self.flomni.reset_tomo_alignment_fit() + self.flomni.manual_shift_y = 0 self.flomni.lights_off() @@ -395,10 +396,12 @@ class XrayEyeAlign: self.gui.on_live_view_enabled(False) print("setting 'XOMNYI-XEYE-ACQ:0'") - self.flomni.OMNYTools.yesno.printgreenbold( + self.flomni.OMNYTools.printgreenbold( f"The largest field of view from the xrayeyealign was \nfovx = {fovx:.0f} microns, fovy" - f" = {fovy:.0f} microns" + f" = {fovy:.0f} microns. Adjusting the flomni.fovx to {fovx+6:.0f} microns." ) + self.flomni.fovx = fovx+6 + print("Check the fit in the GUI...") time.sleep(5)