Skip to content

Commit 6fee26d

Browse files
committed
Add Ophyd v1 support
1 parent 52588a1 commit 6fee26d

File tree

2 files changed

+188
-40
lines changed

2 files changed

+188
-40
lines changed

src/dodal/beamlines/adsim.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ def det(path_provider: PathProvider) -> SimDetector:
8888
)
8989

9090

91-
# v1_devices = OphydV1DeviceManager()
92-
93-
94-
# @v1_devices.factory
95-
# def old_motor() -> EpicsMotor:
96-
# return EpicsMotor(name="old_motor", prefix=f"{PREFIX.beamline_prefix}-MO-SIMC-01:")
91+
@devices.v1_init(factory=EpicsMotor, prefix=f"{PREFIX.beamline_prefix}-MO-SIMC-01:M1")
92+
def old_motor(motor: EpicsMotor):
93+
print(f"Built {motor}")

0 commit comments

Comments
 (0)