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

Accept string as ref

parent 9e2c5ea0
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,8 @@ class segment_measurements:
ref:MeasurementRef=None, accept_if=None):
if ref is None:
name = f'<unnamed> {channel},{index}'
elif isinstance(ref, str):
name = ref
else:
name = ref.name
self._measurements.append(measurement_acquisition(name, accept_if, channel, index, has_threshold, ref))
......
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