-
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.
- Loading branch information
1 parent
7b439aa
commit e8d08e1
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,30 @@ | ||
from __future__ import annotations | ||
|
||
from collections import namedtuple | ||
|
||
import bluesky.plan_stubs as bps | ||
from bluesky import RunEngine | ||
|
||
from .smaract import SmarAct | ||
|
||
Point3D = namedtuple("Point3D", ("x", "y", "z")) | ||
|
||
|
||
def move_xz_motors(smaract_motors: SmarAct, pos): | ||
yield from bps.mv() | ||
|
||
|
||
def move_omega(smaract_motors: SmarAct): | ||
yield from bps.mv(smaract_motors.omega, 45) | ||
|
||
|
||
def exercise_plan(): | ||
pass | ||
|
||
|
||
def main(): | ||
RE = RunEngine() | ||
RE(exercise_plan()) | ||
|
||
|
||
main() |
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,17 @@ | ||
from ophyd import Component as Cpt | ||
from ophyd import EpicsMotor | ||
from ophyd.epics_motor import MotorBundle | ||
|
||
|
||
class SmarAct(MotorBundle): | ||
x: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:PINX") | ||
z: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:PINZ") | ||
yh: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:PINYH") | ||
omega: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:OMEGA") | ||
kappa: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:KAPPA") | ||
phi: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:PHI") | ||
|
||
# SmarAct | ||
xs: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:PINXS") | ||
ys: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:PINXS") | ||
zs: EpicsMotor = Cpt(EpicsMotor, "-MO-VGON-01:PINZS") |