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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
ba6d8d62
Commit
ba6d8d62
authored
2 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
added ignoring attributeError for the receiver
parent
584ab42f
No related branches found
No related tags found
1 merge request
!421
Resolve L2SS-920 "Make statistics writer tolerant"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/statistics/writer/hdf5.py
+29
-23
29 additions, 23 deletions
...tioncontrol/tangostationcontrol/statistics/writer/hdf5.py
with
29 additions
and
23 deletions
tangostationcontrol/tangostationcontrol/statistics/writer/hdf5.py
+
29
−
23
View file @
ba6d8d62
...
@@ -312,43 +312,49 @@ class SstHdf5Writer(HDF5Writer):
...
@@ -312,43 +312,49 @@ class SstHdf5Writer(HDF5Writer):
)
)
try
:
try
:
try
:
rcu_attenuator_dB_data
=
self
.
current_matrix
.
parameters
[
"
rcu_attenuator_dB
"
].
astype
(
numpy
.
int64
)
except
:
rcu_attenuator_dB_data
=
None
current_group
.
create_dataset
(
current_group
.
create_dataset
(
name
=
"
rcu_attenuator_dB
"
,
name
=
"
rcu_attenuator_dB
"
,
data
=
rcu_attenuator_dB_data
,
data
=
self
.
current_matrix
.
parameters
[
"
rcu_attenuator_dB
"
].
astype
(
numpy
.
int64
),
compression
=
"
gzip
"
,
)
except
AttributeError
:
logger
.
debug
(
"
set rcu_attenuator_dB_data to None
"
)
current_group
.
create_dataset
(
name
=
"
rcu_attenuator_dB
"
,
data
=
None
,
shape
=
(
1
,),
compression
=
"
gzip
"
,
compression
=
"
gzip
"
,
)
)
try
:
try
:
rcu_band_select_data
=
self
.
current_matrix
.
parameters
[
"
rcu_band_select
"
].
astype
(
numpy
.
int64
)
except
:
rcu_band_select_data
=
None
current_group
.
create_dataset
(
current_group
.
create_dataset
(
name
=
"
rcu_band_select
"
,
name
=
"
rcu_band_select
"
,
data
=
rcu_band_select_data
,
data
=
self
.
current_matrix
.
parameters
[
"
rcu_band_select
"
].
astype
(
numpy
.
int64
),
compression
=
"
gzip
"
,
)
except
AttributeError
:
logger
.
debug
(
"
set rcu_band_select_data to None
"
)
current_group
.
create_dataset
(
name
=
"
rcu_band_select
"
,
data
=
None
,
shape
=
(
1
,),
compression
=
"
gzip
"
,
compression
=
"
gzip
"
,
)
)
try
:
try
:
rcu_dth_on_data
=
self
.
current_matrix
.
parameters
[
"
rcu_dth_on
"
].
astype
(
numpy
.
bool_
)
except
:
rcu_dth_on_data
=
None
current_group
.
create_dataset
(
current_group
.
create_dataset
(
name
=
"
rcu_dth_on
"
,
name
=
"
rcu_dth_on
"
,
data
=
rcu_dth_on_data
,
data
=
self
.
current_matrix
.
parameters
[
"
rcu_dth_on
"
].
astype
(
numpy
.
bool_
),
compression
=
"
gzip
"
,
)
except
AttributeError
:
logger
.
debug
(
"
set rcu_dth_on to None
"
)
current_group
.
create_dataset
(
name
=
"
rcu_dth_on
"
,
data
=
None
,
shape
=
(
1
,),
compression
=
"
gzip
"
,
compression
=
"
gzip
"
,
)
)
except
AttributeError
as
e
:
logger
.
warning
(
"
AttributeError: Device values not written.
"
)
except
Exception
as
e
:
logger
.
warning
(
"
Device values not written.
"
)
class
BstHdf5Writer
(
HDF5Writer
):
class
BstHdf5Writer
(
HDF5Writer
):
...
...
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