Commit 0dd6112d authored by Claudio Scafuri's avatar Claudio Scafuri 💬
Browse files

testing

parent 4c9d9a35
#!/usr/bin/python3
from tango import *
bpm1 = DeviceProxy('sr/diagnostics/bpmid')
bpm2 = DeviceProxy('tom:20000/sr/diagnostics/bpmid')
attrlist1 = bpm1.get_attribute_list()
attrlist2 = bpm2.get_attribute_list()
print (len(attrlist1), len(attrlist2))
att1={}
att2={}
i = 0
for a in attrlist1:
att1[a]=i
i=i+1
i=0
for a in attrlist2:
att2[a]=i
i=i+1
sorted_att1 = {k: att1[k] for k in sorted(att1)}
sorted_att2 = {k: att2[k] for k in sorted(att2)}
print(sorted_att1.keys())
print(sorted_att2.keys())
#for attr in attrlist2:
#a1 = bpm1.read_attribute(attr).value
#a2 = bpm2.read_attribute(attr).value
#print(attr,a1,a2)
Markdown is supported
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