-
Notifications
You must be signed in to change notification settings - Fork 12
Add i22 beamline and devices #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
175f21a
Add i22 devices
DiamondJoseph 3a711b2
Add tests for i22 devices
DiamondJoseph e35b49d
Add i22 beamline
DiamondJoseph 75814e9
Update p38 to use ophyd-async devices
DiamondJoseph 2bc74bf
Allow Drivers to be unnamed
DiamondJoseph ca535ef
Move tetramm test into standard package and fix test
DiamondJoseph 4e0719d
Address review comments
DiamondJoseph 49a2a55
Run device_instantiation tests on i22 beamline
DiamondJoseph 9ecfd7e
Increase TetrAMM testing, remove enum repr
DiamondJoseph 28e4541
Rename pandas to be consistent
DiamondJoseph 6ae9996
Improve deadtimes of TetrAMM, Aravis driver
DiamondJoseph 7fa50ef
Add test for tetramm frame time
DiamondJoseph 26a17e0
ophyd_async @ master (until next release)
DiamondJoseph a0fbc9c
Live p38 state
DiamondJoseph 7e68da7
Current state of p38 devices
DiamondJoseph File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,82 @@ | ||
from ophyd_async.panda import PandA | ||
|
||
from dodal.beamlines.beamline_utils import device_instantiation, get_directory_provider | ||
from dodal.beamlines.beamline_utils import set_beamline as set_utils_beamline | ||
from dodal.devices.i22.pilatus import I22HDFStatsPilatus | ||
from dodal.devices.linkam3 import Linkam3 | ||
from dodal.devices.tetramm import TetrammDetector | ||
from dodal.log import set_beamline as set_log_beamline | ||
from dodal.utils import get_beamline_name | ||
|
||
BL = get_beamline_name("i22") | ||
set_log_beamline(BL) | ||
set_utils_beamline(BL) | ||
|
||
|
||
def saxs( | ||
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False | ||
) -> I22HDFStatsPilatus: | ||
return device_instantiation( | ||
I22HDFStatsPilatus, | ||
"saxs", | ||
"-EA-PILAT-01:", | ||
wait_for_connection, | ||
fake_with_ophyd_sim, | ||
directory_provider=get_directory_provider(), | ||
) | ||
|
||
|
||
def waxs( | ||
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False | ||
) -> I22HDFStatsPilatus: | ||
return device_instantiation( | ||
I22HDFStatsPilatus, | ||
"waxs", | ||
"-EA-PILAT-03:", | ||
wait_for_connection, | ||
fake_with_ophyd_sim, | ||
directory_provider=get_directory_provider(), | ||
) | ||
|
||
|
||
def panda1( | ||
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False | ||
) -> PandA: | ||
return device_instantiation( | ||
PandA, "panda1", "-EA-PANDA-01:", wait_for_connection, fake_with_ophyd_sim | ||
) | ||
|
||
|
||
def linkam( | ||
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False | ||
) -> Linkam3: | ||
return device_instantiation( | ||
Linkam3, "linkam", "-EA-TEMPC-05", wait_for_connection, fake_with_ophyd_sim | ||
) | ||
|
||
|
||
def incident_beam( | ||
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False | ||
) -> TetrammDetector: | ||
return device_instantiation( | ||
TetrammDetector, | ||
"incident_beam", | ||
"-EA-XBPM-02:", | ||
wait_for_connection, | ||
fake_with_ophyd_sim, | ||
directory_provider=get_directory_provider(), | ||
temperature="Temperature", | ||
) | ||
|
||
|
||
def transmitted_beam( | ||
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False | ||
) -> TetrammDetector: | ||
return device_instantiation( | ||
TetrammDetector, | ||
"transmitted_beam", | ||
"-EA-TTRM-02:", | ||
wait_for_connection, | ||
fake_with_ophyd_sim, | ||
directory_provider=get_directory_provider(), | ||
) |
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
from .adaravis import AdAravisDetector | ||
from .adsim import AdSimDetector | ||
from .adutils import Hdf5Writer, SynchronisedAdDriverBase | ||
from .pilatus import HDFStatsPilatus | ||
|
||
__all__ = [ | ||
"AdSimDetector", | ||
"SynchronisedAdDriverBase", | ||
"HDFStatsPilatus", | ||
"Hdf5Writer", | ||
"AdAravisDetector", | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I presume?