ISISComputingGroup / ibex_bluesky_core

Core bluesky plan stubs & devices for use at ISIS. Not instrument/technique specific.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Create a run engine #2

Closed Tom-Willemsen closed 1 month ago

Tom-Willemsen commented 1 month ago

We will need a function to acquire a suitably-configured bluesky run engine under which plans will be executed

Acceptance criteria

Something in the following form works:

import bluesky.plan_stubs as bps
from bluesky.run_engine import RunEngine
from ibex_bluesky_core import get_run_engine

RE: RunEngine = get_run_engine()
RE(bps.null())  # Or any other plan - null() is the simplest possible plan, which emits no messages

ANOTHER_RE: RunEngine = get_run_engine()  # Should return the same run_engine as before
assert ANOTHER_RE is RE

Ensure unit tests have been created, to cover at a minimum:

Time in planning meeting (18/07/24)

1:26:00 (ish - sorry, GR)

Tom-Willemsen commented 1 month ago

PRs: