Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mauro Rovezzi
bliss
Commits
cbb1f324
Commit
cbb1f324
authored
Apr 19, 2018
by
Vincent Michel
Browse files
Fix single-read counter acquisition device
parent
4fcba48c
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/scanning/acquisition/counter.py
View file @
cbb1f324
...
...
@@ -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"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment