DiamondLightSource / DiamondLightSource/dodal

dodal connect cannot selectively mock devices when device_factory has been configured to mock specific devices

Open
#925 3 comments 0 reactions 0 assignees View on GitHub
bug i22
Dominant language
Python
Stars
5
Forks
13
Avg merge
3d 2h
Merged PRs (30d)
10

Description

On p38 we have a selection of devices that we always want to be backed by simulated backends: optical components that are a clone of the setup on i22 so the output of the beamline can be representative of the output on i22.

When we use `dodal connect`, we can pass True or False for the `--sim-backend` argument- which then overrules what configuration has been set on the beamline module.

## Acceptance Criteria
- [ ] On p38 we can have devices that should be mocked by default
- [ ] When dodal connect is called for p38 with no argument to `--sim-backend`, the devices that should be mocked by default are connected to mock backends, and other devices connect to real backends
- [ ] There is exactly one documented way to achieve this behaviour

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.