DiamondLightSource / DiamondLightSource/fastcs
Make `DataType`'s mutable
Open
- Dominant language
- Python
- Stars
- 6
- Forks
- 8
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 3
Description
We currently have frozen `DataType`'s, with the callback to update the backend based on changed fields on the `DataType` taking a whole new `DataType`:
https://github.com/DiamondLightSource/FastCS/blob/bb6929a15716d96d806f240096515319223d8332/src/fastcs/attributes.py#L105-L113
We should instead make the `DataType` mutable and have the above method just use `self._datatype`.
Contributor guide
Assessment
This issue has not been assessed yet.