Skip to content
Snippets Groups Projects
Commit 62738fe2 authored by Udai Singh's avatar Udai Singh
Browse files

fixed small error

parent fb1d6edb
No related branches found
No related tags found
No related merge requests found
......@@ -97,10 +97,12 @@ class blissdata_dispacher:
elem['shape']=doc.get("data_keys")[dev]['shape']
elem['precision']=doc.get("data_keys")[dev]['precision']
unit=""
if elem['name'] in self.motors:
device_type="axis"
if elem['name'] in self.dets:
device_type = "counters"
if self.motors is not None:
if elem['name'] in self.motors:
device_type="axis"
if self.dets is not None:
if elem['name'] in self.dets:
device_type = "counters"
self.devices[device_type]['channels'].append(dev)
self.channels[elem['label']] = ChannelDict(device=device_type,
dim=len(elem['shape']),
......
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