Commit cbb1f324 authored by Vincent Michel's avatar Vincent Michel
Browse files

Fix single-read counter acquisition device

parent 4fcba48c
......@@ -59,6 +59,9 @@ class BaseCounterAcquisitionDevice(AcquisitionDevice):
def add_counter(self, counter):
if not isinstance(self.device, GroupedReadMixin):
# Ignore if the counter is already the provided device
if self.device == counter:
return
raise RuntimeError(
"Cannot add counter to single-read counter acquisition device")
......
Supports Markdown
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