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
e7513c44
Commit
e7513c44
authored
2 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-869
: move querying into start_new_matrix procedure
parent
e285441e
No related branches found
No related tags found
1 merge request
!426
Resolve L2SS-869 "Improve querying in stats writer"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/statistics/writer/hdf5.py
+3
-3
3 additions, 3 deletions
...tioncontrol/tangostationcontrol/statistics/writer/hdf5.py
with
3 additions
and
3 deletions
tangostationcontrol/tangostationcontrol/statistics/writer/hdf5.py
+
3
−
3
View file @
e7513c44
...
...
@@ -120,9 +120,6 @@ class HDF5Writer(ABC):
# grab the timestamp
statistics_timestamp
=
statistics_packet
.
timestamp
()
# query the device attributes for updated values
self
.
retrieve_attribute_values
()
# ignore packets with no timestamp, as they indicate FPGA processing was
# disabled and are useless anyway.
if
statistics_packet
.
block_serial_number
==
0
:
...
...
@@ -173,6 +170,8 @@ class HDF5Writer(ABC):
# write the finished (and checks if its the first matrix)
if
self
.
current_matrix
is
not
None
:
try
:
# query the device attributes for updated values
self
.
retrieve_attribute_values
()
self
.
write_matrix
()
except
Exception
as
e
:
time
=
self
.
current_timestamp
.
strftime
(
...
...
@@ -191,6 +190,7 @@ class HDF5Writer(ABC):
# create a new and empty current_matrix
self
.
current_matrix
=
self
.
new_collector
()
self
.
statistics_header
=
None
self
.
device_attributes
=
{}
def
write_matrix
(
self
):
"""
Writes the finished matrix to the hdf5 file
"""
...
...
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