Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
3f9872ec
Commit
3f9872ec
authored
4 years ago
by
Ramesh Kumar
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into
TMSS-674
parents
fffb59b7
e8bbf30d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!397
Resolve TMSS-630
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/tmssapp/adapters/parset.py
+7
-6
7 additions, 6 deletions
SAS/TMSS/backend/src/tmss/tmssapp/adapters/parset.py
with
7 additions
and
6 deletions
SAS/TMSS/backend/src/tmss/tmssapp/adapters/parset.py
+
7
−
6
View file @
3f9872ec
...
...
@@ -114,8 +114,8 @@ def _convert_correlator_settings_to_parset_dict(subtask: models.Subtask, spec: d
for
digi_beam
in
digi_beams
:
for
subband
in
digi_beam
[
"
subbands
"
]:
dataproduct
=
[
dp
for
dp
in
dataproducts
if
dp
.
specifications_doc
[
"
sap
"
]
==
digi_beam
[
'
name
'
]
and
dp
.
specifications_doc
[
"
subband
"
]
==
subband
]
if
dp
.
specifications_doc
.
get
(
"
sap
"
)
==
digi_beam
[
'
name
'
]
and
dp
.
specifications_doc
.
get
(
"
subband
"
)
==
subband
]
correlator_dataproducts
.
append
(
dataproduct
[
0
]
if
dataproduct
else
null_dataproduct
)
...
...
@@ -145,7 +145,7 @@ def _convert_beamformer_settings_to_parset_dict(subtask: models.Subtask, spec: d
beamformer_pipeline_parsets
=
[]
# Process beamformer pipelines
for
pipeline
in
spec
[
'
COBALT
'
][
'
beamformer
'
][
'
tab_pipelines
'
]:
for
pipeline
_idx
,
pipeline
in
enumerate
(
spec
[
'
COBALT
'
][
'
beamformer
'
][
'
tab_pipelines
'
]
)
:
pipeline_parset
=
{}
pipeline_parset
.
update
(
_add_prefix
(
_stokes_settings_parset_subkeys
(
pipeline
[
'
coherent
'
]),
"
CoherentStokes.
"
))
pipeline_parset
.
update
(
_add_prefix
(
_stokes_settings_parset_subkeys
(
pipeline
[
'
incoherent
'
]),
"
IncoherentStokes.
"
))
...
...
@@ -176,12 +176,13 @@ def _convert_beamformer_settings_to_parset_dict(subtask: models.Subtask, spec: d
for
s
in
range
(
nr_stokes
):
for
p
in
range
(
nr_parts
):
dataproduct
=
[
dp
for
dp
in
dataproducts
if
dp
.
specifications_doc
[
"
sap
"
]
==
sap
[
'
name
'
]
if
dp
.
specifications_doc
.
get
(
"
sap
"
)
==
sap
[
'
name
'
]
and
"
identifiers
"
in
dp
.
specifications_doc
and
dp
.
specifications_doc
[
"
identifiers
"
][
"
pipeline_index
"
]
==
pipeline_idx
and
dp
.
specifications_doc
[
"
identifiers
"
][
"
tab_index
"
]
==
field
_idx
and
dp
.
specifications_doc
[
"
identifiers
"
][
"
tab_index
"
]
==
tab
_idx
and
dp
.
specifications_doc
[
"
identifiers
"
][
"
stokes_index
"
]
==
s
and
dp
.
specifications_doc
[
"
identifiers
"
][
"
part_index
"
]
==
p
and
dp
.
specifications_doc
[
"
coherent
"
]
==
tab
[
'
coherent
'
]]
and
dp
.
specifications_doc
.
get
(
"
coherent
"
)
==
tab
[
'
coherent
'
]]
if
tab
[
'
coherent
'
]:
coherent_dataproducts
.
append
(
dataproduct
[
0
]
if
dataproduct
else
null_dataproduct
)
else
:
...
...
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