f
CI for csaxs_bec / test (push) Failing after 38s
CI for csaxs_bec / test (pull_request) Failing after 39s

This commit is contained in:
2026-05-20 11:42:11 +02:00
parent 63df4bb9bc
commit 8df705d7b8
3 changed files with 8 additions and 9 deletions
+1
View File
@@ -5,5 +5,6 @@ from .lamni_fermat_scan_v4 import LamniFermatScanV4
from .lamni_move_to_scan_center import LamniMoveToScanCenter
from .LamNIFermatScan import LamNIFermatScan, LamNIMoveToScanCenter
from .omny_fermat_scan import OMNYFermatScan
from .omny_fermat_scan_v4 import OmnyFermatScanV4
from .owis_grid import OwisGrid
from .sgalil_grid import SgalilGrid
+2
View File
@@ -371,6 +371,8 @@ class LamniFermatScanV4(ScanBase):
-np.sin(alpha) * stage_x_with_stitch + np.cos(alpha) * stage_y_with_stitch
)
# FIXME: We are checking stage_x_rot vs fovy. This needs to be clarified if this is correct
# once LamNI is back in operation. We keep it like this for now.
return (
np.abs(stage_x_rot) <= (self.fovy / 2)
and np.abs(stage_y_rot) <= (self.fovx / 2)
+5 -9
View File
@@ -42,17 +42,13 @@ class LamniMoveToScanCenter(ScanBase):
gui_config = {"Scan Parameters": ["shift_x", "shift_y", "angle"]}
def __init__(
# fmt: off
self,
shift_x: Annotated[
float, ScanArgument(display_name="Shift X", description="Shift x.", units=Units.mm)
],
shift_y: Annotated[
float, ScanArgument(display_name="Shift Y", description="Shift y.", units=Units.mm)
],
angle: Annotated[
float, ScanArgument(display_name="Angle", description="Angle.", units=Units.deg)
],
shift_x: Annotated[float, ScanArgument(display_name="Shift X", description="Shift x.", units=Units.mm)],
shift_y: Annotated[float, ScanArgument(display_name="Shift Y", description="Shift y.", units=Units.mm)],
angle: Annotated[float, ScanArgument(display_name="Angle", description="Angle.", units=Units.deg)],
**kwargs,
# fmt: on
):
"""
LamNI scan to move the interferometer to the computed scan center based on the provided shift and angle.