From f50dfbc35a79bc6784061b213ad3686549ce8dde Mon Sep 17 00:00:00 2001 From: Thomas Lohnert Date: Fri, 4 Aug 2023 14:41:25 +0100 Subject: [PATCH] Ensure axis velocity is reset --- test_config/good_for_refl/refl/config.py | 4 ++-- tests/refl.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test_config/good_for_refl/refl/config.py b/test_config/good_for_refl/refl/config.py index 3f1b2d7d0..b8b3daf9a 100644 --- a/test_config/good_for_refl/refl/config.py +++ b/test_config/good_for_refl/refl/config.py @@ -41,8 +41,8 @@ def get_beamline(macros): add_parameter(AxisParameter("SMAngle", sm_comp, ChangeAxis.ANGLE), [polarised]) add_parameter(InBeamParameter("SMInBeam", sm_comp), modes=[nr, polarised], mode_inits=[(polarised, True)]) add_driver( - IocDriver(sm_comp, ChangeAxis.POSITION, MotorPVWrapper("MOT:MTR0107"), out_of_beam_positions=[SM_OUT_POS])) - add_driver(IocDriver(sm_comp, ChangeAxis.ANGLE, MotorPVWrapper("MOT:MTR0208"))) + IocDriver(sm_comp, ChangeAxis.POSITION, MotorPVWrapper("MOT:MTR0107"), out_of_beam_positions=[SM_OUT_POS], synchronised=False)) + add_driver(IocDriver(sm_comp, ChangeAxis.ANGLE, MotorPVWrapper("MOT:MTR0208"), synchronised=False)) # THETA theta = add_component(ThetaComponent("ThetaComp", PositionAndAngle(0.0, 2 * SPACING, 90))) diff --git a/tests/refl.py b/tests/refl.py index 15a9bc67b..61bb04670 100644 --- a/tests/refl.py +++ b/tests/refl.py @@ -88,6 +88,8 @@ "GALILCONFIGDIR": test_config_path.replace("\\", "/"), }, "inits": { + "MTR0208.VMAX": INITIAL_VELOCITY, + "MTR0208.VELO": INITIAL_VELOCITY, "MTR0208.ERES": 0.001, "MTR0208.MRES": 0.001 },