odin-detector / odin-data

DAQ software libraries for capturing and storing data from parallel detector systems
https://odin-detector.github.io/odin-data/
Apache License 2.0
8 stars 11 forks source link

OdinDataAdapter adds a 0 index in the parameter path for single applications #349

Open GDYendell opened 2 months ago

GDYendell commented 2 months ago

e.g. meta writer:

❯ curl http://127.0.0.1:8888/api/0.1/od_ml/0
{"0": {"status": {"acquisitions": {}, "timestamp": "2024-06-26T13:02:13.211147", "error": [], "connected": true}, "config": {"acquisitions": {}, "data_endpoints": ["tcp://127.0.0.1:10008", "tcp://127.0.0.1:10018", "tcp://127.0.0.1:10028", "tcp://127.0.0.1:10038"], "ctrl_port": 5659}}}

It is not clear to me the best way to handle this because we want frame processor and frame receiver adapters to be indexed even if there is only one application. We only want the adapters that are never indexed (meta writer, fan) to not have the index, but this is not visible during introspection. Maybe the indexed adapters need to be statically defined.