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
ed8ccbd5
Commit
ed8ccbd5
authored
3 years ago
by
Jörn Künsemöller
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-708
: Support creating pulp dp SIPs
parent
9a13858e
Branches
Branches containing commit
Tags
Tags containing commit
4 merge requests
!634
WIP: COBALT commissioning delta
,
!512
From master into TMSS-849-Commissioning-sprint-9
,
!508
Resolve TMSS-708
,
!481
Draft: SW-971 SW-973 SW-975: Various fixes to build LOFAR correctly.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/tmssapp/adapters/sip.py
+15
-16
15 additions, 16 deletions
SAS/TMSS/backend/src/tmss/tmssapp/adapters/sip.py
with
15 additions
and
16 deletions
SAS/TMSS/backend/src/tmss/tmssapp/adapters/sip.py
+
15
−
16
View file @
ed8ccbd5
...
@@ -420,23 +420,22 @@ def create_sip_representation_for_dataproduct(dataproduct: Dataproduct):
...
@@ -420,23 +420,22 @@ def create_sip_representation_for_dataproduct(dataproduct: Dataproduct):
elif
dataproduct
.
dataformat
.
value
==
Dataformat
.
Choices
.
PULP_ANALYSIS
.
value
:
elif
dataproduct
.
dataformat
.
value
==
Dataformat
.
Choices
.
PULP_ANALYSIS
.
value
:
sip_dataproduct
=
siplib
.
PulpDataProduct
(
sip_dataproduct
=
siplib
.
PulpDataProduct
(
dataproduct_map
,
dataproduct_map
,
filecontent
=
[
"
content_a
"
,
"
content_b
"
],
filecontent
=
dataproduct
.
feedback_doc
[
'
files
'
],
datatype
=
"
CoherentStokes
"
,
datatype
=
"
CoherentStokes
"
if
dataproduct
.
feedback_doc
[
'
target
'
][
'
coherent
'
]
else
"
IncoherentStokes
"
,
# todo: correct? what about complex voltages?
arraybeam
=
siplib
.
SimpleArrayBeam
(
siplib
.
ArrayBeamMap
(
arraybeam
=
siplib
.
SimpleArrayBeam
(
siplib
.
ArrayBeamMap
(
subarraypointing_identifier
=
point_id
,
subarraypointing_identifier
=
get_siplib_identifier
(
dataproduct
.
sap
.
global_identifier
,
"
SAP %s
"
%
dataproduct
.
sap
.
id
),
beamnumber
=
4
,
beamnumber
=
dataproduct
.
specifications_doc
[
'
identifiers
'
][
'
tab_index
'
]
if
'
identifiers
'
in
dataproduct
.
specifications_doc
else
0
,
# todo: verify
dispersionmeasure
=
16
,
dispersionmeasure
=
0
,
# fixed
numberofsubbands
=
3
,
numberofsubbands
=
len
(
dataproduct
.
feedback_doc
[
'
frequency
'
][
'
subbands
'
]),
stationsubbands
=
[
1
,
2
,
3
],
stationsubbands
=
dataproduct
.
feedback_doc
[
'
frequency
'
][
'
subbands
'
],
samplingtime
=
3
,
samplingtime
=
dataproduct
.
feedback_doc
[
'
time
'
][
'
sample_width
'
],
samplingtimeunit
=
"
ms
"
,
samplingtimeunit
=
"
s
"
,
centralfrequencies
=
""
,
centralfrequencies
=
dataproduct
.
feedback_doc
[
'
frequency
'
][
'
central_frequencies
'
],
centralfrequencies_unit
=
"
MHz
"
,
centralfrequencies_unit
=
"
Hz
"
,
channelwidth_frequency
=
160
,
channelwidth_frequency
=
dataproduct
.
feedback_doc
[
'
frequency
'
][
'
channel_width
'
],
channelwidth_frequencyunit
=
"
MHz
"
,
channelwidth_frequencyunit
=
"
Hz
"
,
channelspersubband
=
5
,
channelspersubband
=
dataproduct
.
feedback_doc
[
'
frequency
'
][
'
channels_per_subband
'
],
stokes
=
[
"
I
"
,
"
Q
"
]
stokes
=
dataproduct
.
feedback_doc
[
'
samples
'
][
'
polarisations
'
]))
))
)
)
# todo: distinguish and create other dataproduct types. Probably most of these can be filled in over time as needed,
# todo: distinguish and create other dataproduct types. Probably most of these can be filled in over time as needed,
...
...
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