-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 618_aperture_selection_based_on_real_box_size
- Loading branch information
Showing
46 changed files
with
649 additions
and
298 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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
Hyperion Parameter class hierarchy | ||
================================== | ||
|
||
TODO: automate including the param hierarchy here | ||
|
||
How Gridscan Parameters are Obtained | ||
------------------------------------ | ||
|
||
.. uml:: gridscan.puml | ||
.. uml:: param_hierarchy.puml |
This file was deleted.
Oops, something went wrong.
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
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
27 changes: 27 additions & 0 deletions
27
src/mx_bluesky/hyperion/device_setup_plans/check_beamstop.py
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,27 @@ | ||
import bluesky.plan_stubs as bps | ||
from dodal.devices.i03.beamstop import Beamstop, BeamstopPositions | ||
|
||
from mx_bluesky.common.utils.log import LOGGER | ||
|
||
|
||
class BeamstopException(Exception): | ||
pass | ||
|
||
|
||
def check_beamstop(beamstop: Beamstop): | ||
""" | ||
Check the current position of the beamstop to ensure it is in position for data collection | ||
Args: | ||
beamstop: The beamstop device | ||
Raises: | ||
BeamstopException: If the beamstop is in any other position than DATA_COLLECTION | ||
""" | ||
current_pos = yield from bps.rd(beamstop.selected_pos) | ||
if current_pos != BeamstopPositions.DATA_COLLECTION: | ||
LOGGER.info(f"Beamstop check failed: position {current_pos}") | ||
raise BeamstopException( | ||
f"Beamstop is not DATA_COLLECTION, current state is {current_pos}" | ||
) | ||
|
||
LOGGER.info("Beamstop check ok") |
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
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
Oops, something went wrong.