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
c061b749
Commit
c061b749
authored
4 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
Change RCU_monitor_rate -> RCU_monitor_rate_RW
parent
8355e764
No related branches found
No related tags found
1 merge request
!2
Refactor for Paulus' pypcc2 version with arrays
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RCUSCC/RCUSCC/RCUSCC.py
+11
-11
11 additions, 11 deletions
RCUSCC/RCUSCC/RCUSCC.py
with
11 additions
and
11 deletions
RCUSCC/RCUSCC/RCUSCC.py
+
11
−
11
View file @
c061b749
...
@@ -165,7 +165,7 @@ class RCUSCC(Device):
...
@@ -165,7 +165,7 @@ class RCUSCC(Device):
max_dim_x
=
32
,
max_dim_y
=
8
,
max_dim_x
=
32
,
max_dim_y
=
8
,
)
)
RCU_monitor_rate
=
attribute
(
RCU_monitor_rate
_RW
=
attribute
(
dtype
=
'
DevULong64
'
,
dtype
=
'
DevULong64
'
,
)
)
...
@@ -231,7 +231,7 @@ class RCUSCC(Device):
...
@@ -231,7 +231,7 @@ class RCUSCC(Device):
self
.
attribute_mapping
[
"
RCU_version_R
"
]
=
self
.
get_pcc_node
(
"
RCU_version_R
"
)
self
.
attribute_mapping
[
"
RCU_version_R
"
]
=
self
.
get_pcc_node
(
"
RCU_version_R
"
)
self
.
attribute_mapping
[
"
RCU_monitor_rate
"
]
=
self
.
get_pcc_node
(
"
RCU_monitor_rate
"
)
self
.
attribute_mapping
[
"
RCU_monitor_rate
_RW
"
]
=
self
.
get_pcc_node
(
"
RCU_monitor_rate
_RW
"
)
self
.
function_mapping
[
"
RCU_off
"
]
=
self
.
get_pcc_node
(
"
RCU_off
"
)
self
.
function_mapping
[
"
RCU_off
"
]
=
self
.
get_pcc_node
(
"
RCU_off
"
)
...
@@ -309,8 +309,8 @@ class RCUSCC(Device):
...
@@ -309,8 +309,8 @@ class RCUSCC(Device):
self
.
_RCU_version_R
=
((
0
,),)
self
.
_RCU_version_R
=
((
0
,),)
self
.
attribute_mapping
[
"
RCU_version_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU_version_R
"
]
=
{}
self
.
_RCU_monitor_rate
=
0.0
self
.
_RCU_monitor_rate
_RW
=
0.0
self
.
attribute_mapping
[
"
RCU_monitor_rate
"
]
=
{}
self
.
attribute_mapping
[
"
RCU_monitor_rate
_RW
"
]
=
{}
# Init the dict that contains function to OPC-UA function mappings.
# Init the dict that contains function to OPC-UA function mappings.
self
.
function_mapping
=
{}
self
.
function_mapping
=
{}
...
@@ -555,16 +555,16 @@ class RCUSCC(Device):
...
@@ -555,16 +555,16 @@ class RCUSCC(Device):
@only_when_on
@only_when_on
@fault_on_error
@fault_on_error
def
read_RCU_monitor_rate
(
self
):
def
read_RCU_monitor_rate
_RW
(
self
):
"""
Return the RCU_monitor_rate attribute.
"""
"""
Return the RCU_monitor_rate
_RW
attribute.
"""
return
self
.
_RCU_monitor_rate
return
self
.
_RCU_monitor_rate
_RW
@only_when_on
@only_when_on
@fault_on_error
@fault_on_error
def
write_RCU_monitor_rate
(
self
,
value
):
def
write_RCU_monitor_rate
_RW
(
self
,
value
):
"""
Set the RCU_monitor_rate attribute.
"""
"""
Set the RCU_monitor_rate
_RW
attribute.
"""
self
.
attribute_mapping
[
"
RCU_monitor_rate
"
].
set_value
(
value
)
self
.
attribute_mapping
[
"
RCU_monitor_rate
_RW
"
].
set_value
(
value
)
self
.
_RCU_monitor_rate
=
value
self
.
_RCU_monitor_rate
_RW
=
value
# --------
# --------
...
...
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