f
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user