Skip to content

Commit 3dd7c3f

Browse files
committed
Change udc_default_state script to use the move_scintillator_safely plan instead of directly calling the scintillator set
1 parent e668b14 commit 3dd7c3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mx_bluesky/hyperion/experiment_plans/udc_default_state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from dodal.devices.mx_phase1.aperturescatterguard import ApertureValue
1919
from dodal.devices.mx_phase1.beamstop import BeamstopPositions
2020
from dodal.devices.mx_phase1.scintillator import InOut as ScinInOut
21-
from dodal.devices.mx_phase1.scintillator import Scintillator
21+
from dodal.devices.mx_phase1.scintillator import Scintillator, move_scintillator_safely
2222
from dodal.devices.oav.oav_detector import OAV
2323
from dodal.devices.robot import BartRobot, PinMounted
2424
from dodal.devices.smargon import Smargon
@@ -79,7 +79,7 @@ def move_to_udc_default_state(devices: UDCDefaultDevices):
7979
devices.hutch_shutter, ShutterDemand.OPEN, group=_GROUP_PRE_BEAMSTOP_CHECK
8080
)
8181

82-
yield from bps.abs_set(devices.scintillator.selected_pos, ScinInOut.OUT, wait=True)
82+
yield from move_scintillator_safely(devices.scintillator, ScinInOut.OUT)
8383

8484
yield from bps.abs_set(
8585
devices.fluorescence_det_motion.pos,

0 commit comments

Comments
 (0)