Skip to content

Commit 92912db

Browse files
authored
Update Reflectometry-Config-Training-‐-Exercise-1.md
1 parent 923555d commit 92912db

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

doc/specific_iocs/reflectometry/config_training/Reflectometry-Config-Training-‐-Exercise-1.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def get_beamline(macros: Dict[str, str]) -> Beamline:
170170
add_constant(BeamlineConstant("SM_Z", SM_Z, "The distance to the supermirror"))
171171

172172
# Modes
173-
_nr = add_mode("NR")
173+
_nr = add_mode(
174+
"NR"
175+
) # Using underscre to pass pyright as mode has to be created but is not used
174176

175177
##############################
176178
# BEAMLINE MODEL STARTS HERE #
@@ -180,8 +182,22 @@ def get_beamline(macros: Dict[str, str]) -> Beamline:
180182
mirror_comp = add_component(
181183
ReflectingComponent("Mirror", PositionAndAngle(0, SM_Z, NATURAL_ANGLE))
182184
)
183-
add_parameter(AxisParameter("SMANGLE", mirror_comp, ChangeAxis.ANGLE, description="Angle of the Supermirror"))
184-
add_parameter(AxisParameter("SMOFFSET", mirror_comp, ChangeAxis.POSITION, description="Vertical Position of the Supermirror"))
185+
add_parameter(
186+
AxisParameter(
187+
"SMANGLE",
188+
mirror_comp,
189+
ChangeAxis.ANGLE,
190+
description="Angle of the Supermirror",
191+
)
192+
)
193+
add_parameter(
194+
AxisParameter(
195+
"SMOFFSET",
196+
mirror_comp,
197+
ChangeAxis.POSITION,
198+
description="Vertical Position of the Supermirror",
199+
)
200+
)
185201
add_driver(IocDriver(mirror_comp, ChangeAxis.ANGLE, MotorPVWrapper("MOT:MTR0207")))
186202
add_driver(
187203
IocDriver(mirror_comp, ChangeAxis.POSITION, MotorPVWrapper("MOT:MTR0206"))

0 commit comments

Comments
 (0)