Commit 2dc8bec0 authored by Matias Guijarro's avatar Matias Guijarro Committed by Sebastien Petitdemange
Browse files

scans.py: default_chain: raise TypeError if submitted counter is not supported

parent ddfa9164
......@@ -66,8 +66,10 @@ def default_chain(chain,scan_pars,counters):
for cnt in set(scan_counters):
if isinstance(cnt, CounterBase):
chain.add(timer, CounterAcqDevice(cnt, expo_time=count_time, npoints=npoints))
# elif isinstance(cnt,Lima):
# chain.add(timer, LimaAcqDevice()))
# elif isinstance(cnt,Lima):
# chain.add(timer, LimaAcqDevice()))
else:
raise TypeError("`%r' is not a supported counter type" % repr(cnt))
return timer
......
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