File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1919from dodal .devices .i22 .fswitch import FSwitch
2020from dodal .devices .i22 .nxsas import NXSasMetadataHolder , NXSasOAV , NXSasPilatus
2121from dodal .devices .linkam3 import Linkam3
22- from dodal .devices .motors import XYPitchStage
22+ from dodal .devices .motors import XYPitchStage , XYRollStage , XYStage
2323from dodal .devices .slits import Slits
2424from dodal .devices .synchrotron import Synchrotron
2525from dodal .devices .tetramm import TetrammDetector
@@ -274,3 +274,18 @@ def ppump() -> WatsonMarlow323Pump:
274274@device_factory ()
275275def base () -> XYPitchStage :
276276 return XYPitchStage (f"{ PREFIX .beamline_prefix } -MO-STABL-01:" )
277+
278+
279+ @device_factory ()
280+ def bs1 () -> XYStage :
281+ return XYStage (f"{ PREFIX .beamline_prefix } -MO-SAXSP-01:BS1:" )
282+
283+
284+ @device_factory ()
285+ def bs2 () -> XYStage :
286+ return XYStage (f"{ PREFIX .beamline_prefix } -MO-SAXSP-01:BS2:" )
287+
288+
289+ @device_factory ()
290+ def bs3 () -> XYRollStage :
291+ return XYRollStage (f"{ PREFIX .beamline_prefix } -MO-SAXSP-01:BS3:" )
Original file line number Diff line number Diff line change @@ -122,6 +122,20 @@ def __init__(
122122 super ().__init__ (prefix , name , x_infix , y_infix )
123123
124124
125+ class XYRollStage (XYStage ):
126+ def __init__ (
127+ self ,
128+ prefix : str ,
129+ x_infix : str = _X ,
130+ y_infix : str = _Y ,
131+ roll_infix : str = "ROLL" ,
132+ name : str = "" ,
133+ ) -> None :
134+ with self .add_children_as_readables ():
135+ self .roll = Motor (prefix + roll_infix )
136+ super ().__init__ (prefix , name , x_infix , y_infix )
137+
138+
125139class XYZPitchYawStage (XYZStage ):
126140 def __init__ (
127141 self ,
You can’t perform that action at this time.
0 commit comments