Skip to content

Commit c02f4f7

Browse files
authoredApr 22, 2017
Paramsets are now dictionaries
1 parent 80bc396 commit c02f4f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎datapoints.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
devices = proxy.listDevices()
4747

4848
for device in devices:
49+
paramsets = {}
4950
for i in range(len(device['PARAMSETS'])):
50-
ps = device['PARAMSETS'][i]
5151
try:
52-
device['PARAMSETS'][i] = proxy.getParamsetDescription(device['ADDRESS'], ps)
52+
paramsets[device['PARAMSETS'][i]] = proxy.getParamsetDescription(device['ADDRESS'], device['PARAMSETS'][i])
5353
except Exception:
5454
pass
5555
if 'CHILDREN' in device:
@@ -63,6 +63,7 @@
6363
device['PHYSICAL_ADDRESS'] = device['PHYSICAL_ADDRESS'] + r
6464
if 'RF_ADDRESS' in device:
6565
device['RF_ADDRESS'] = device['RF_ADDRESS'] + r
66+
device['PARAMSETS'] = paramsets
6667

6768
if not outfile:
6869
pprint.pprint(devices)

0 commit comments

Comments
 (0)
Please sign in to comment.