-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathi05.py
More file actions
31 lines (25 loc) · 968 Bytes
/
i05.py
File metadata and controls
31 lines (25 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from dodal.beamlines.i05_shared import devices as i05_shared_devices
from dodal.common.beamlines.beamline_utils import set_beamline as set_utils_beamline
from dodal.device_manager import DeviceManager
from dodal.devices.beamlines.i05 import I05Goniometer
from dodal.devices.temperture_controller import Lakeshore336
from dodal.log import set_beamline as set_log_beamline
from dodal.utils import BeamlinePrefix, get_beamline_name
BL = get_beamline_name("i05")
PREFIX = BeamlinePrefix(BL)
set_log_beamline(BL)
set_utils_beamline(BL)
devices = DeviceManager()
devices.include(i05_shared_devices)
@devices.factory()
def sample_temperature_controller() -> Lakeshore336:
return Lakeshore336(prefix=f"{PREFIX.beamline_prefix}-EA-TCTRL-02:")
@devices.factory()
def sa() -> I05Goniometer:
"""Sample Manipulator."""
return I05Goniometer(
f"{PREFIX.beamline_prefix}-EA-SM-01:",
x_infix="SAX",
y_infix="SAY",
z_infix="SAZ",
)