Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
ds
bpmid
Commits
0dd6112d
Commit
0dd6112d
authored
Aug 30, 2021
by
Claudio Scafuri
💬
Browse files
testing
parent
4c9d9a35
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/comp.py
0 → 100644
View file @
0dd6112d
#!/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)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment