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
2cf45ef0
Commit
2cf45ef0
authored
11 years ago
by
Alwin de Jong
Browse files
Options
Downloads
Patches
Plain Diff
Task #3772:fix wrong types for parset dataproduct keys
parent
71c746ed
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CEP/Pipeline/recipes/sip/bin/pulsar_pipeline.py
+11
-10
11 additions, 10 deletions
CEP/Pipeline/recipes/sip/bin/pulsar_pipeline.py
with
11 additions
and
10 deletions
CEP/Pipeline/recipes/sip/bin/pulsar_pipeline.py
+
11
−
10
View file @
2cf45ef0
...
...
@@ -34,9 +34,8 @@ class pulsar_pipeline(control):
def
__init__
(
self
):
super
(
pulsar_pipeline
,
self
).
__init__
()
self
.
parset
=
parameterset
()
self
.
input_data
=
[]
self
.
output_data
=
[]
self
.
io_data_mask
=
[]
self
.
input_data
=
{}
self
.
output_data
=
{}
self
.
parset_feedback_file
=
None
...
...
@@ -73,7 +72,7 @@ class pulsar_pipeline(control):
)
# Coherent Stokes input data
self
.
coherentStokesEnabled
=
dps
.
getBool
(
'
Input_CoherentStokes.enabled
'
,
False
)
self
.
input_data
[
'
C
oherent
Stokes
'
]
=
DataMap
([
self
.
input_data
[
'
c
oherent
'
]
=
DataMap
([
tuple
(
os
.
path
.
join
(
location
,
filename
).
split
(
'
:
'
))
+
(
skip
,)
for
location
,
filename
,
skip
in
zip
(
dps
.
getStringVector
(
'
Input_CoherentStokes.locations
'
),
...
...
@@ -84,7 +83,7 @@ class pulsar_pipeline(control):
len
(
self
.
input_data
[
'
CoherentStokes
'
]))
# Incoherent Stokes input data
self
.
incoherentStokesEnabled
=
dps
.
getBool
(
'
Input_IncoherentStokes.enabled
'
,
False
)
self
.
input_data
[
'
I
ncoherent
Stokes
'
]
=
DataMap
([
self
.
input_data
[
'
i
ncoherent
'
]
=
DataMap
([
tuple
(
os
.
path
.
join
(
location
,
filename
).
split
(
'
:
'
))
+
(
skip
,)
for
location
,
filename
,
skip
in
zip
(
dps
.
getStringVector
(
'
Input_IncoherentStokes.locations
'
),
...
...
@@ -93,7 +92,7 @@ class pulsar_pipeline(control):
])
self
.
logger
.
debug
(
"
%d Input_IncoherentStokes data products specified
"
%
len
(
self
.
input_data
[
'
IncoherentStokes
'
]))
self
.
output_data
=
DataMap
([
self
.
output_data
[
'
data
'
]
=
DataMap
([
tuple
(
os
.
path
.
join
(
location
,
filename
).
split
(
'
:
'
))
+
(
skip
,)
for
location
,
filename
,
skip
in
zip
(
dps
.
getStringVector
(
'
Output_Pulsar.locations
'
),
...
...
@@ -138,13 +137,13 @@ class pulsar_pipeline(control):
# Write input- and output data map-files
# Coherent Stokes
self
.
input_CS_mapfile
=
os
.
path
.
join
(
mapfile_dir
,
"
input_CS_data.mapfile
"
)
self
.
input_data
[
'
C
oherent
Stokes
'
].
save
(
self
.
input_CS_mapfile
)
self
.
input_data
[
'
c
oherent
'
].
save
(
self
.
input_CS_mapfile
)
# Incoherent Stokes
self
.
input_IS_mapfile
=
os
.
path
.
join
(
mapfile_dir
,
"
input_IS_data.mapfile
"
)
self
.
input_data
[
'
I
ncoherent
Stokes
'
].
save
(
self
.
input_IS_mapfile
)
self
.
input_data
[
'
i
ncoherent
'
].
save
(
self
.
input_IS_mapfile
)
# Output data
self
.
output_data_mapfile
=
os
.
path
.
join
(
mapfile_dir
,
"
output_data.mapfile
"
)
self
.
output_data
.
save
(
output_data_mapfile
)
self
.
output_data
[
'
data
'
]
.
save
(
output_data_mapfile
)
if
len
(
self
.
input_data
)
==
0
:
self
.
logger
.
warn
(
"
No input data files to process. Bailing out!
"
)
...
...
@@ -164,10 +163,12 @@ class pulsar_pipeline(control):
sys
.
argv
.
append
(
"
--noIS
"
)
#
call pulp
#
Run the pulsar pipeline
#pulp(self)
print
>>
sys
.
stderr
,
"
REACHED THE POINT WHERE PULP SHOULD BE STARTED...
"
return
0
if
__name__
==
'
__main__
'
:
...
...
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