Use IRDB for defaults, e.g. for DetectorArray
The values from the IRDB should be used as defaults, also for persistent attributes that are instances, e.g. for the DetectorArray.
Current IRDB integration:
- IRDB is a git submodule of MicadoWISE.
- Defaults from the IRDB are manually copied into micado.vodsl (Hardware section), but only for simple attributes (ints, floats, strings), not objects themselves.
- ìrdb_test.py` verifies whether these defaults are correct.
- Nothing is done for objects themselves. It is therefore only possible to e.g. use the true detector array by manually typing it out.
Next step:
- In
python_from_vodml.py
, also generate default objects, querying the IRDB for values. - Then use these default objects as defaults for the persistent attributes.
Future step (should be relatively easy, depending on success of previous step):
- Remove Hardware section from micado.vodsl, because everything is retrieved from the IRDB.
- Perhaps also refactor
python_from_vodml.py
, because the hardware section is not created from vodml anymore but from the IRDB.