feat(flomni): raise fovx limit from 200 to 220 um
CI for csaxs_bec / test (push) Successful in 2m20s

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0197yD3hTxwvrgmYr7aaYiCD
This commit is contained in:
x12saandClaude Sonnet 5 committed 2026-09-16 10:08:41 +02:00
1 parent 8856f4c084
commit 1ef73f31e4
2 files changed
+6 -6

No files matched your search

@@ -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 <ctime> = {self.tomo_countingtime} s")
print(f"Stepsize microns <step> = {self.tomo_shellstep}")
print(f"FOV (200/100) <microns> = {self.fovx}, {self.fovy}")
print(f"FOV (220/100) <microns> = {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("<ctime> s", self.tomo_countingtime, float)
self.tomo_shellstep = self._get_val("<step size> um", self.tomo_shellstep, float)
self.fovx = self._get_val("<FOV X (max 200)> um", self.fovx, float)
self.fovx = self._get_val("<FOV X (max 220)> um", self.fovx, float)
self.fovy = self._get_val("<FOV Y (max 100)> um", self.fovy, float)
if self.single_point_instead_of_fermat_scan:
print(
+2 -2
View File
@@ -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.