Skip to content

Commit

Permalink
Utilise Pilatus implementation from ophyd-async 0.3a3 (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph authored May 3, 2024
1 parent afecc2c commit 989cc00
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/dodal/beamlines/i22.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from ophyd_async.epics.areadetector import PilatusDetector

from dodal.beamlines.beamline_utils import (
device_instantiation,
get_directory_provider,
Expand Down Expand Up @@ -29,6 +31,36 @@
)


def saxs(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> PilatusDetector:
return device_instantiation(
PilatusDetector,
"saxs",
"-EA-PILAT-01:",
wait_for_connection,
fake_with_ophyd_sim,
drv_suffix="DRV:",
hdf_suffix="HDF:",
directory_provider=get_directory_provider(),
)


def waxs(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> PilatusDetector:
return device_instantiation(
PilatusDetector,
"waxs",
"-EA-PILAT-03:",
wait_for_connection,
fake_with_ophyd_sim,
drv_suffix="DRV:",
hdf_suffix="HDF:",
directory_provider=get_directory_provider(),
)


def i0(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand Down

0 comments on commit 989cc00

Please sign in to comment.