Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ArchiveExtractor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
ArchiveExtractor
Commits
2acca3a2
Commit
2acca3a2
authored
2 years ago
by
BRONES Romain
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into dev_module
parents
7d80a2fe
536be947
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
old/OpUtils.py
+26
-0
26 additions, 0 deletions
old/OpUtils.py
with
26 additions
and
0 deletions
old/OpUtils.py
+
26
−
0
View file @
2acca3a2
...
...
@@ -27,6 +27,32 @@ def searchattr(prx, attr, ignorecase=True):
else
:
return
[
a
for
a
in
prx
.
get_attribute_list
()
if
attr
in
a
]
def
captureattr
(
prx
):
"""
Capture all attributes in the device, return a python dict.
PARAMETERS
----------
prx: tango.DeviceProxy
Proxy to the device.
RETURN
------
attrs: dict
keys are attributes names, values are values.
"""
attrs
=
dict
()
attrlist
=
prx
.
get_attribute_list
()
R
=
prx
.
read_attributes
(
attrlist
,
wait
=
True
)
for
r
in
R
:
attrs
[
r
.
name
.
lower
()]
=
r
.
value
return
attrs
###############################################################################
# FUNCTIONS ON TANGO DATABASE
###############################################################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment