DiamondLightSource / DiamondLightSource/fastcs

Make `DataType`'s mutable

Open
#111 1 comment 0 reactions 0 assignees View on GitHub
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

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.