DiamondLightSource / DiamondLightSource/blueapi
Combine context.plans and context.plan_functions into a single dictionary
Open
c: context
enhancement
priority low
- Dominant language
- Python
- Stars
- 13
- Forks
- 13
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 25
Description
Making context.plans hold a dataclass e.g.
```python
@dataclass
class PlanWithMetadata:
plan_function: PlanGenerator
params:
metadata:
```
prevents having to maintain two dictionaries but also means we can easily extract the serialisable parts of the plan to send.
Contributor guide
Assessment
This issue has not been assessed yet.