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

Added check comparing hardware and software thresholded values

parent 1ae550f3
No related branches found
No related tags found
No related merge requests found
......@@ -364,6 +364,9 @@ class MeasurementConverter:
if m.zero_on_high:
result = result ^ 1
result = result.astype(int)
data = self._channel_raw.get(m.acquisition_channel+'.thresholded', None)
if data is not None and np.any(result != data):
logger.warning(f'{np.sum(result != data)} differences between hardware and software threshold')
elif isinstance(m, measurement_expression):
result = m.expression.evaluate(last_result)
else:
......
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