Skip to content
GitLab
Explore
Sign in
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
80c1b284
Commit
80c1b284
authored
2 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-819
: prevent exception raising if tango device is not responding
parent
55418067
No related branches found
No related tags found
1 merge request
!366
Resolve L2SS-819 "Annotate sst with station config"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/devices/sdp/statistics_collector.py
+6
-12
6 additions, 12 deletions
...l/tangostationcontrol/devices/sdp/statistics_collector.py
with
6 additions
and
12 deletions
tangostationcontrol/tangostationcontrol/devices/sdp/statistics_collector.py
+
6
−
12
View file @
80c1b284
...
@@ -110,10 +110,7 @@ class SSTCollector(StatisticsCollector):
...
@@ -110,10 +110,7 @@ class SSTCollector(StatisticsCollector):
self
.
parameters
[
"
subbands_calibrated
"
][
input_index
]
=
fields
.
subband_calibrated_flag
self
.
parameters
[
"
subbands_calibrated
"
][
input_index
]
=
fields
.
subband_calibrated_flag
# add tango values to packet
# add tango values to packet
try
:
self
.
parse_device_attributes
(
device
)
self
.
parse_device_attributes
(
device
)
except
Exception
as
e
:
raise
Exception
from
e
def
parse_device_attributes
(
self
,
device
:
DeviceProxy
):
def
parse_device_attributes
(
self
,
device
:
DeviceProxy
):
...
@@ -129,13 +126,10 @@ class SSTCollector(StatisticsCollector):
...
@@ -129,13 +126,10 @@ class SSTCollector(StatisticsCollector):
self
.
parameters
[
"
rcu_band_select
"
]
=
device
.
RCU_Band_Select_R
self
.
parameters
[
"
rcu_band_select
"
]
=
device
.
RCU_Band_Select_R
self
.
parameters
[
"
rcu_dth_on
"
]
=
device
.
RCU_DTH_on_R
self
.
parameters
[
"
rcu_dth_on
"
]
=
device
.
RCU_DTH_on_R
except
DevFailed
as
e
:
except
DevFailed
as
e
:
if
e
.
args
[
0
].
reason
in
[
'
Attribute not found
'
,
'
API_AttrNotAllowed
'
,
'
API_AttrNotFound
'
]:
logger
.
warning
(
f
"
Device
{
device
.
name
()
}
not responding.
"
)
logger
.
warning
(
f
"
Device
{
device
.
name
()
}
not responding.
"
)
self
.
parameters
[
"
rcu_attenuator_dB
"
]
=
None
self
.
parameters
[
"
rcu_attenuator_dB
"
]
=
None
self
.
parameters
[
"
rcu_band_select
"
]
=
None
self
.
parameters
[
"
rcu_band_select
"
]
=
None
self
.
parameters
[
"
rcu_dth_on
"
]
=
None
self
.
parameters
[
"
rcu_dth_on
"
]
=
None
else
:
raise
Exception
from
e
class
XSTCollector
(
StatisticsCollector
):
class
XSTCollector
(
StatisticsCollector
):
"""
Class to process XST statistics packets.
"""
Class to process XST statistics packets.
...
...
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