Skip to content

Commit ca64454

Browse files
committed
Add snapshot plan
1 parent fe7e3d7 commit ca64454

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/test_rig_bluesky/plans.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from bluesky.plans import count
2+
from dodal.beamlines.b01_1 import mako as _mako
3+
from dodal.beamlines.b01_1 import manta as _manta
4+
from dodal.common.beamlines.beamline_utils import get_path_provider
5+
from dodal.plan_stubs.data_session import attach_data_session_metadata_decorator
6+
7+
8+
@attach_data_session_metadata_decorator(get_path_provider())
9+
def snapshot():
10+
"""Capture one image on mako + manta and write file to commissioning directory."""
11+
manta = _manta(connect_immediately=True)
12+
mako = _mako(connect_immediately=True)
13+
yield from count([manta, mako])

src/test_rig_bluesky/run.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from bluesky.run_engine import RunEngine
2+
3+
from test_rig_bluesky.plans import snapshot
4+
5+
RE = RunEngine()
6+
RE(snapshot())

0 commit comments

Comments
 (0)