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__': ...@@ -147,9 +147,10 @@ if __name__ == '__main__':
data[topic][formatted_tag]['time'].append(message.value['time']) data[topic][formatted_tag]['time'].append(message.value['time'])
data[topic][formatted_tag]['fields']['data'].append(message.value[tag]) data[topic][formatted_tag]['fields']['data'].append(message.value[tag])
elif 'statevector' in topic: elif 'statevector' in topic:
tag = [name for name in message.value.keys() if name in statevector_tags][0] tags = [name for name in message.value.keys() if name in statevector_tags]
data[topic][tag]['time'].append(message.value['time']) for tag in tags:
data[topic][tag]['fields']['data'].append(message.value[tag]) data[topic][tag]['time'].append(message.value['time'])
except KeyError: ### no metrics except KeyError: ### no metrics
pass 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