You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add configurable movement simulation to i06-1 MockSuperConductingMagnetController #2188
MockSuperConductingMagnetController currently completes movements immediately. This is useful for most unit tests, but it means tests involving fly scans cannot exercise behaviour where the magnet position changes over time.
For example, when running a fly scan, the scaler may acquire multiple points while the magnet is moving. With the current instantaneous mock, the magnet jumps directly to its final position, so this behaviour cannot be tested.
The mock should support configurable simulated movement while retaining the current instantaneous behaviour by default.
The mock should be configurable with a number of movement steps and a total ramp time:
This allows integration/fly-scan tests to exercise realistic asynchronous behaviour, including:
Multiple detector/scaler readings while the magnet is moving.
Position updates occurring over time.
Fly scans where the motor and detector operate concurrently.
Correct completion of a movement only after the simulated motion has reached the target.
Behaviour when the movement distance is different from the configured/default example.
Activity