Skip to content
Snippets Groups Projects
Commit c0bb957d authored by Sander Snoo's avatar Sander Snoo
Browse files

Corrected MeasurementMajority to work with pulse_templates.

parent 1eef29af
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,10 @@ class MeasurementMajority(MeasurementExpressionBase):
def __init__(self, measurements, threshold=0.5):
keys = []
for m in measurements:
keys += m.keys
if hasattr(m, 'keys'):
keys += m.keys
else:
keys.append(m.name)
super().__init__(keys)
self._measurements = measurements
self._threshold = threshold
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment