Commit 7e92ac56 authored by Vincent Michel's avatar Vincent Michel
Browse files

Remove counter fullname function from common.scans

parent 6fa9f41a
......@@ -224,13 +224,7 @@ def default_chain(chain, scan_pars, counters):
raise ValueError(
"No counters for scan. Hint: are all counters disabled ?")
# Eliminate duplicates using counter full names
def fullname(arg):
if hasattr(arg, 'controller'):
return '.'.join((arg.controller.name, arg.name))
return arg.name
counter_dct = {fullname(counter): counter for counter in counters}
counter_dct = {counter.fullname: counter for counter in counters}
counters = [counter for name, counter in sorted(counter_dct.items())]
# TODO: remove and adapt API
......
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