-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add initial idgap alignment specific plan draft
- Loading branch information
Showing
6 changed files
with
54 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import bluesky.plan_stubs as bps | ||
from bluesky.devices.monochromator import DCM as Monochromator | ||
from dodal.common import MsgGenerator, inject | ||
from dodal.devices.undulator import Undulator | ||
|
||
UNDULATOR = inject("undulator") | ||
DCM = inject("monochromator") | ||
|
||
|
||
def align_idgap( | ||
harmonic: int = 1, | ||
undulator: Undulator = UNDULATOR, | ||
monochromator: Monochromator = DCM, | ||
) -> MsgGenerator: | ||
""" | ||
Bragg angle motor | ||
""" | ||
|
||
gap = yield from bps.rd(undulator.current_gap) | ||
monochromator.bragg_in_degrees |