feat: added nested object
This commit is contained in:
parent
7b950de7a6
commit
059977db1f
@ -3,6 +3,13 @@ from .epics import *
|
|||||||
from .galil.galil_ophyd import GalilMotor
|
from .galil.galil_ophyd import GalilMotor
|
||||||
from .npoint.npoint import NPointAxis
|
from .npoint.npoint import NPointAxis
|
||||||
from .rt_lamni import RtLamniMotor
|
from .rt_lamni import RtLamniMotor
|
||||||
from .sim.sim import SynAxisMonitor, SynAxisOPAAS, SynFlyer, SynSignalRO, SynSLSDetector
|
from .sim.sim import (
|
||||||
|
SynAxisMonitor,
|
||||||
|
SynAxisOPAAS,
|
||||||
|
SynDeviceOPAAS,
|
||||||
|
SynFlyer,
|
||||||
|
SynSignalRO,
|
||||||
|
SynSLSDetector,
|
||||||
|
)
|
||||||
from .sls_devices.sls_devices import SLSInfo, SLSOperatorMessages
|
from .sls_devices.sls_devices import SLSInfo, SLSOperatorMessages
|
||||||
from .smaract.smaract_ophyd import SmaractMotor
|
from .smaract.smaract_ophyd import SmaractMotor
|
||||||
|
@ -624,6 +624,7 @@ class SynAxisOPAAS(Device, PositionerBase):
|
|||||||
else:
|
else:
|
||||||
update_state(value)
|
update_state(value)
|
||||||
self._done_moving()
|
self._done_moving()
|
||||||
|
st.set_finished()
|
||||||
return st
|
return st
|
||||||
|
|
||||||
def stop(self, *, success=False):
|
def stop(self, *, success=False):
|
||||||
@ -638,6 +639,16 @@ class SynAxisOPAAS(Device, PositionerBase):
|
|||||||
return "mm"
|
return "mm"
|
||||||
|
|
||||||
|
|
||||||
|
class SynDeviceSubOPAAS(Device):
|
||||||
|
zsub = Cpt(SynAxisOPAAS, name="zsub")
|
||||||
|
|
||||||
|
|
||||||
|
class SynDeviceOPAAS(Device):
|
||||||
|
x = Cpt(SynAxisOPAAS, name="x")
|
||||||
|
y = Cpt(SynAxisOPAAS, name="y")
|
||||||
|
z = Cpt(SynDeviceSubOPAAS, name="z")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
det = SynSLSDetector(name="moench")
|
det = SynSLSDetector(name="moench")
|
||||||
det.trigger()
|
det.trigger()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user