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
4d017489
Commit
4d017489
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-674
: Fix statistics_writer for multiple subbands in XST
parent
4136c11d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/statistics_writer/hdf5_writer.py
+5
-5
5 additions, 5 deletions
...trol/tangostationcontrol/statistics_writer/hdf5_writer.py
with
5 additions
and
5 deletions
tangostationcontrol/tangostationcontrol/statistics_writer/hdf5_writer.py
+
5
−
5
View file @
4d017489
...
@@ -253,7 +253,10 @@ class xst_hdf5_writer(hdf5_writer):
...
@@ -253,7 +253,10 @@ class xst_hdf5_writer(hdf5_writer):
def
write_values_matrix
(
self
,
current_group
):
def
write_values_matrix
(
self
,
current_group
):
# requires a function call to transform the xst_blocks in to the right structure
# requires a function call to transform the xst_blocks in to the right structure
current_group
.
create_dataset
(
name
=
"
values
"
,
data
=
self
.
current_matrix
.
xst_values
([
self
.
subband_index
])[
0
].
astype
(
numpy
.
cfloat
),
compression
=
"
gzip
"
)
#
# since we have a dedicated writer per subband_index, they all end up in slot 0
# in their writer, so we only need to store the first set of xst_values.
current_group
.
create_dataset
(
name
=
"
values
"
,
data
=
self
.
current_matrix
.
xst_values
([
0
])[
0
].
astype
(
numpy
.
cfloat
),
compression
=
"
gzip
"
)
class
parallel_xst_hdf5_writer
:
class
parallel_xst_hdf5_writer
:
...
@@ -265,15 +268,12 @@ class parallel_xst_hdf5_writer:
...
@@ -265,15 +268,12 @@ class parallel_xst_hdf5_writer:
# function to create a new writer, to avoid having to store
# function to create a new writer, to avoid having to store
# all the init parameters just for this purpose.
# all the init parameters just for this purpose.
#
def
new_writer
(
subband
):
def
new_writer
(
subband
):
# Since we use a dedicated writer per subband, the data will end
# up at subband_index == 0 in each of them.
return
xst_hdf5_writer
(
return
xst_hdf5_writer
(
new_file_time_interval
,
new_file_time_interval
,
file_location
,
file_location
,
decimation_factor
,
decimation_factor
,
0
)
subband
)
self
.
new_writer
=
new_writer
self
.
new_writer
=
new_writer
...
...
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