From e9357d7f4309b4b4099f7ffed475164aafef0f72 Mon Sep 17 00:00:00 2001 From: gmalinve <103059376+gmalinve@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:28:59 +0100 Subject: [PATCH] fix pm motor example (#280) --- .../motor/aedt_motor/pm_synchronous.py | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/low_frequency/motor/aedt_motor/pm_synchronous.py b/examples/low_frequency/motor/aedt_motor/pm_synchronous.py index 680a73018..d109ddadc 100644 --- a/examples/low_frequency/motor/aedt_motor/pm_synchronous.py +++ b/examples/low_frequency/motor/aedt_motor/pm_synchronous.py @@ -399,19 +399,6 @@ def create_cs_magnets(pm_id, cs_name, point_direction): name="Outer_Band", ) -# ## Assign motion setup to object -# -# Assign a motion setup to a ``Band`` object named ``RotatingBand_mid``. - -m2d.assign_rotate_motion( - assignment="Band", - coordinate_system="Global", - axis="Z", - positive_movement=True, - start_position="InitialPositionMD", - angular_velocity="MachineRPM", -) - # ## Create list of vacuum objects # # Create a list of vacuum objects and assign color. @@ -704,6 +691,19 @@ def create_cs_magnets(pm_id, cs_name, point_direction): m2d.change_symmetry_multiplier("SymmetryFactor") +# ## Assign motion setup to object +# +# Assign a motion setup to a ``Band`` object named ``RotatingBand_mid``. + +m2d.assign_rotate_motion( + assignment="Band", + coordinate_system="Global", + axis="Z", + positive_movement=True, + start_position="InitialPositionMD", + angular_velocity="MachineRPM", +) + # ## Create setup and validate # +