File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1313)
1414from dodal .devices .attenuator .attenuator import BinaryFilterAttenuator
1515from dodal .devices .backlight import Backlight
16+ from dodal .devices .baton import Baton
1617from dodal .devices .detector import DetectorParams
1718from dodal .devices .detector .detector_motion import DetectorMotion
1819from dodal .devices .diamond_filter import DiamondFilter , I04Filters
@@ -142,12 +143,20 @@ def transfocator() -> Transfocator:
142143 return Transfocator (f"{ PREFIX .beamline_prefix } -MO-FSWT-01:" )
143144
144145
146+ @device_factory ()
147+ def baton () -> Baton :
148+ """Get the i04 baton device, instantiate it if it hasn't already been.
149+ If this is called when already instantiated in i04, it will return the existing object.
150+ """
151+ return Baton (f"{ PREFIX .beamline_prefix } -CS-BATON-01:" )
152+
153+
145154@device_factory ()
146155def xbpm_feedback () -> XBPMFeedback :
147156 """Get the i04 xbpm_feedback device, instantiate it if it hasn't already been.
148157 If this is called when already instantiated in i04, it will return the existing object.
149158 """
150- return XBPMFeedback (f"{ PREFIX .beamline_prefix } -EA-FDBK-01:" )
159+ return XBPMFeedback (f"{ PREFIX .beamline_prefix } -EA-FDBK-01:" , baton = baton () )
151160
152161
153162@device_factory ()
@@ -236,6 +245,7 @@ def undulator() -> UndulatorInKeV:
236245 return UndulatorInKeV (
237246 prefix = f"{ PREFIX .insertion_prefix } -MO-SERVC-01:" ,
238247 id_gap_lookup_table_path = "/dls_sw/i04/software/daq_configuration/lookup/BeamLine_Undulator_toGap.txt" ,
248+ baton = baton (),
239249 )
240250
241251
You can’t perform that action at this time.
0 commit comments