Skip to content

Commit a1a5829

Browse files
I16 insertion device (#1778)
* Add undulator for I16 * Add undulator for I16 * Harmonic added, comments addressed * remove names from devices
1 parent a2e9629 commit a1a5829

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/dodal/beamlines/i16.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from dodal.common.beamlines.beamline_utils import set_beamline as set_utils_beamline
2+
from dodal.device_manager import DeviceManager
3+
from dodal.devices.undulator import UndulatorInMm, UndulatorOrder
4+
from dodal.log import set_beamline as set_log_beamline
5+
from dodal.utils import BeamlinePrefix, get_beamline_name
6+
7+
BL = get_beamline_name("i16")
8+
set_log_beamline(BL)
9+
set_utils_beamline(BL)
10+
PREFIX = BeamlinePrefix(BL)
11+
12+
13+
devices = DeviceManager()
14+
15+
16+
@devices.factory()
17+
def id() -> UndulatorInMm:
18+
return UndulatorInMm(prefix=f"{PREFIX.insertion_prefix}-MO-SERVC-01:")
19+
20+
21+
@devices.factory()
22+
def harmonic() -> UndulatorOrder:
23+
return UndulatorOrder()

0 commit comments

Comments
 (0)