From 1ef73f31e43a8fe24eac4fbdbc45a9b62112002a Mon Sep 17 00:00:00 2001 From: x12sa Date: Wed, 16 Sep 2026 10:08:41 +0200 Subject: [PATCH] feat(flomni): raise fovx limit from 200 to 220 um Raise the flOMNI fovx cap in the flomni.fovx property setter, the tomo_parameters() summary/prompt text, and the flomni_fermat_scan ScanArgument bound + docstring, so all four are consistent. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_0197yD3hTxwvrgmYr7aaYiCD --- csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py | 8 ++++---- csaxs_bec/scans/flomni_fermat_scan.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py index d013a68f..834f495a 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py @@ -2036,8 +2036,8 @@ class Flomni( @fovx.setter def fovx(self, val: float): - if val > 200: - raise ValueError("FOV cannot be larger than 200 um.") + if val > 220: + raise ValueError("FOV cannot be larger than 220 um.") self.client.set_global_var("fovx", val) @property @@ -3651,7 +3651,7 @@ class Flomni( print("Current settings:") print(f"Counting time = {self.tomo_countingtime} s") print(f"Stepsize microns = {self.tomo_shellstep}") - print(f"FOV (200/100) = {self.fovx}, {self.fovy}") + print(f"FOV (220/100) = {self.fovx}, {self.fovy}") print(f"Stitching number x,y = {self.stitch_x}, {self.stitch_y}") print(f"Stitching overlap = {self.tomo_stitch_overlap}") if not self.single_point_instead_of_fermat_scan: @@ -3739,7 +3739,7 @@ class Flomni( else: self.tomo_countingtime = self._get_val(" s", self.tomo_countingtime, float) self.tomo_shellstep = self._get_val(" um", self.tomo_shellstep, float) - self.fovx = self._get_val(" um", self.fovx, float) + self.fovx = self._get_val(" um", self.fovx, float) self.fovy = self._get_val(" um", self.fovy, float) if self.single_point_instead_of_fermat_scan: print( diff --git a/csaxs_bec/scans/flomni_fermat_scan.py b/csaxs_bec/scans/flomni_fermat_scan.py index fff274d1..6ca6ae00 100644 --- a/csaxs_bec/scans/flomni_fermat_scan.py +++ b/csaxs_bec/scans/flomni_fermat_scan.py @@ -69,7 +69,7 @@ class FlomniFermatScan(ScanBase): def __init__( # fmt: off self, - fovx: Annotated[float, ScanArgument(display_name="Fovx", description="FOV in the piezo plane (i.e. piezo range). Max 200 um.", units=Units.µm, gt=0, lt=200, example=10)], + fovx: Annotated[float, ScanArgument(display_name="Fovx", description="FOV in the piezo plane (i.e. piezo range). Max 220 um.", units=Units.µm, gt=0, lt=220, example=10)], fovy: Annotated[float, ScanArgument(display_name="Fovy", description="FOV in the piezo plane (i.e. piezo range). Max 100 um.", units=Units.µm, gt=0, lt=100, example=10)], cenx: Annotated[float, ScanArgument(display_name="Cenx", description="Center position in x.", units=Units.µm, example=0)], ceny: Annotated[float, ScanArgument(display_name="Ceny", description="Center position in y.", units=Units.µm, example=0)], @@ -87,7 +87,7 @@ class FlomniFermatScan(ScanBase): flOMNI Fermat Scan Args: - fovx (float): FOV in the piezo plane (i.e. piezo range). Max 200 um. + fovx (float): FOV in the piezo plane (i.e. piezo range). Max 220 um. fovy (float): FOV in the piezo plane (i.e. piezo range). Max 100 um. cenx (float): Center position in x. ceny (float): Center position in y.