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

Fixed error when no shot is accepted

parent cfc24443
No related branches found
No related tags found
No related merge requests found
......@@ -340,7 +340,7 @@ class MeasurementConverter:
if total_selected > 0:
self._values = [np.sum(result*accepted_mask)/total_selected for result in values_unfiltered]
else:
self._values = np.full(len(values_unfiltered), np.nan)
self._values = [np.full(len(values_unfiltered), np.nan)]
def set_channel_data(self, data):
self._channel_raw = data
......
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