-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add saxs and waxs Pilatus detectors to i22 beamline
- Adds DLS standard constructor for ophyd-async Pilatus implementation
- Loading branch information
1 parent
cee1627
commit 05e5bcf
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from ophyd_async.core import DirectoryProvider | ||
from ophyd_async.epics.areadetector import PilatusDetector | ||
from ophyd_async.epics.areadetector.drivers import PilatusDriver | ||
from ophyd_async.epics.areadetector.writers import NDFileHDF | ||
|
||
|
||
def DLSPilatus( | ||
prefix: str, name: str, directory_provider: DirectoryProvider | ||
) -> PilatusDetector: | ||
return PilatusDetector( | ||
name=name, | ||
directory_provider=directory_provider, | ||
driver=PilatusDriver(prefix + "DRV:"), | ||
hdf=NDFileHDF(prefix + "HDF:"), | ||
) |