Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions configuration/b01-1-blueapi-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ stomp:
auth:
username: guest
password: guest
url: http://b01-1-rabbitmq-daq.diamond.ac.uk:61613
url: tcp://b01-1-rabbitmq-daq.diamond.ac.uk:61613
enabled: true
oidc:
well_known_url: https://authn.diamond.ac.uk/realms/master/.well-known/openid-configuration
client_id: blueapi-cli
4 changes: 3 additions & 1 deletion src/test_rig_bluesky/plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def spectroscopy(
metadata: dict[str, Any] | None = None,
) -> MsgGenerator[None]:
"""Do a spectroscopy scan."""
yield from bps.prepare(spectroscopy_detector, TriggerInfo(livetime=exposure_time))
yield from bps.prepare(
spectroscopy_detector, TriggerInfo(livetime=exposure_time), wait=True
)

spec = spec or Line(sample_stage.x, 0, 5, 5)

Expand Down
8 changes: 8 additions & 0 deletions tests/unit_tests/test_plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,11 @@ async def test_spectroscopy_defaults(RE: RunEngine):
"sample_stage-y": 0.0,
"sample_stage-z": 0.0,
}


def test_spectroscopy_prepares_and_waits_before_doing_anything_else(RE: RunEngine):
plan = spectroscopy()
message_1, message_2 = next(plan), next(plan)

assert message_1.command == "prepare"
assert message_2.command == "wait"