Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
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
LOFAR2.0
tango
Commits
8439d8d8
Commit
8439d8d8
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
removed superfluous in attribute_wrapper write_function()
parent
7e2341d5
No related branches found
No related tags found
1 merge request
!18
Resolve #2021 "04 16 branched from master state bug fix"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
devices/src/attribute_wrapper.py
+8
-9
8 additions, 9 deletions
devices/src/attribute_wrapper.py
with
8 additions
and
9 deletions
devices/src/attribute_wrapper.py
+
8
−
9
View file @
8439d8d8
...
...
@@ -66,8 +66,8 @@ class attribute_wrapper(attribute):
def
read_RW
(
device
):
# print("read_RW {}, {}x{}, {}, {}".format(me.name, me.dim_x, me.dim_y, me.attr_type, me.value))
"""
read_RW returns the value that was last written to the attribute
"""
read_RW returns the value that was last written to the attribute
"""
try
:
return
device
.
value_dict
[
self
]
except
Exception
as
e
:
...
...
@@ -78,13 +78,12 @@ class attribute_wrapper(attribute):
@fault_on_error
def
write_RW
(
device
,
value
):
"""
_write_RW writes a value to this attribute
"""
try
:
self
.
write_function
(
value
)
device
.
value_dict
[
self
]
=
value
except
Exception
as
e
:
raise
e
_write_RW writes a value to this attribute
"""
self
.
write_function
(
value
)
device
.
value_dict
[
self
]
=
value
self
.
fget
=
read_RW
self
.
fset
=
write_RW
...
...
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