The class SLiCAPprotos.device is used as a record/struct, instantiated only to store data in the DEVICESdictionary. Better use a dataclass (less code, automatic __init__, __repr__ and __eq__). Set frozen=True as devices should be read-only. Option slots (to save memory) only available in Python 3.10+, so not used (yet).
File DEVICES.pp contains the pretty-printed DEVICES dictionary, for further use in testing.
The class
SLiCAPprotos.device
is used as a record/struct, instantiated only to store data in theDEVICES
dictionary. Better use adataclass
(less code, automatic__init__
,__repr__
and__eq__
). Setfrozen=True
as devices should be read-only. Optionslots
(to save memory) only available in Python 3.10+, so not used (yet).File
DEVICES.pp
contains the pretty-printedDEVICES
dictionary, for further use in testing.