Commit 50ad8a51 authored by cal's avatar cal

Fixes to aggregator for reading calib state monitors

parent 490c03b9
Pipeline #73098 failed with stages
in 1 minute and 6 seconds
......@@ -147,9 +147,10 @@ if __name__ == '__main__':
data[topic][formatted_tag]['time'].append(message.value['time'])
data[topic][formatted_tag]['fields']['data'].append(message.value[tag])
elif 'statevector' in topic:
tag = [name for name in message.value.keys() if name in statevector_tags][0]
data[topic][tag]['time'].append(message.value['time'])
data[topic][tag]['fields']['data'].append(message.value[tag])
tags = [name for name in message.value.keys() if name in statevector_tags]
for tag in tags:
data[topic][tag]['time'].append(message.value['time'])
data[topic][tag]['fields']['data'].append(message.value[tag])
except KeyError: ### no metrics
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment