Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/dodal/beamlines/i15_1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from functools import cache
from pathlib import Path

from ophyd_async.core import PathProvider, StaticPathProvider, UUIDFilenameProvider
from ophyd_async.epics.motor import Motor
from ophyd_async.fastcs.eiger import EigerDetector

from dodal.common.beamlines.beamline_utils import set_beamline as set_utils_beamline
from dodal.device_manager import DeviceManager
Expand Down Expand Up @@ -34,6 +39,14 @@
"""


@devices.fixture
@cache
def path_provider() -> PathProvider:
return StaticPathProvider(
UUIDFilenameProvider(), Path("/dls/i15-1/data/2026/cm44163-2")
)


@devices.factory()
def att_y() -> NumberedTripleAxisStage:
return NumberedTripleAxisStage(
Expand Down Expand Up @@ -221,3 +234,10 @@ def gonio_interlock() -> GonioInterlock:
return GonioInterlock(
bl_prefix=PREFIX.beamline_prefix, interlock_suffix="-VA-OMRON-01:INT3:ILK"
)


@devices.factory()
def fastcs_eiger(path_provider: PathProvider) -> EigerDetector:
return EigerDetector(
prefix=f"{PREFIX.beamline_prefix}-EA-EIGER-01:", path_provider=path_provider
)
Loading