Skip to content
Snippets Groups Projects
Commit 22837cbf authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #2942: Reverted commit r21701. Don't know if it's really needed, and it...

Task #2942: Reverted commit r21701. Don't know if it's really needed, and it doesn't seem to work the way I thought
parent 6520f5b1
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ class StatefulRecipe(BaseRecipe): ...@@ -67,7 +67,7 @@ class StatefulRecipe(BaseRecipe):
'statefile' 'statefile'
), ),
'w') 'w')
state = [self.inputs, self.outputs, self.state] state = [self.inputs, self.state]
cPickle.dump(state, statefile) cPickle.dump(state, statefile)
def go(self): def go(self):
...@@ -78,7 +78,7 @@ class StatefulRecipe(BaseRecipe): ...@@ -78,7 +78,7 @@ class StatefulRecipe(BaseRecipe):
) )
try: try:
statefile = open(statefile, 'r') statefile = open(statefile, 'r')
inputs, self.outputs, self.state = cPickle.load(statefile) inputs, self.state = cPickle.load(statefile)
statefile.close() statefile.close()
# What's the correct thing to do if inputs differ from the saved # What's the correct thing to do if inputs differ from the saved
......
...@@ -170,7 +170,7 @@ class msss_target_pipeline(control): ...@@ -170,7 +170,7 @@ class msss_target_pipeline(control):
mapfile_target=target_path, mapfile_target=target_path,
mapfiles_dir=copier_map_path, mapfiles_dir=copier_map_path,
mapfile=copied_files_path, mapfile=copied_files_path,
target_dir="instument_models")['mapfile'] target_dir="instrument_models")['mapfile']
return new_instrument_map return new_instrument_map
...@@ -256,7 +256,11 @@ class msss_target_pipeline(control): ...@@ -256,7 +256,11 @@ class msss_target_pipeline(control):
vdsinfo = self.run_task("vdsreader", gvds=gvds_file) vdsinfo = self.run_task("vdsreader", gvds=gvds_file)
# Create an empty parmdb for DPPP # Create an empty parmdb for DPPP
parmdb_mapfile = self.run_task("setupparmdb", data_mapfile)['mapfile'] parmdb_mapfile = self.run_task(
"setupparmdb", data_mapfile,
mapfile=os.path.join(mapfile_dir, 'dppp.parmdb.mapfile'),
suffix='.dppp.parmdb'
)['mapfile']
# Create a sourcedb to be used by the demixing phase of DPPP # Create a sourcedb to be used by the demixing phase of DPPP
# The path to the A-team sky model is currently hard-coded. # The path to the A-team sky model is currently hard-coded.
...@@ -265,7 +269,9 @@ class msss_target_pipeline(control): ...@@ -265,7 +269,9 @@ class msss_target_pipeline(control):
skymodel=os.path.join( skymodel=os.path.join(
self.config.get('DEFAULT', 'lofarroot'), self.config.get('DEFAULT', 'lofarroot'),
'share', 'pipeline', 'skymodels', 'Ateam_LBA_CC.skymodel' 'share', 'pipeline', 'skymodels', 'Ateam_LBA_CC.skymodel'
) ),
mapfile=os.path.join(mapfile_dir, 'dppp.sourcedb.mapfile'),
suffix='.dppp.sourcedb'
)['mapfile'] )['mapfile']
# Create a parameter-subset for DPPP and write it to file. # Create a parameter-subset for DPPP and write it to file.
...@@ -290,7 +296,9 @@ class msss_target_pipeline(control): ...@@ -290,7 +296,9 @@ class msss_target_pipeline(control):
# Create an empty sourcedb for BBS # Create an empty sourcedb for BBS
sourcedb_mapfile = self.run_task( sourcedb_mapfile = self.run_task(
"setupsourcedb", data_mapfile "setupsourcedb", data_mapfile,
mapfile=os.path.join(mapfile_dir, 'bbs.sourcedb.mapfile'),
suffix='.bbs.sourcedb'
)['mapfile'] )['mapfile']
# Create a parameter-subset for BBS and write it to file. # Create a parameter-subset for BBS and write it to file.
...@@ -315,7 +323,7 @@ class msss_target_pipeline(control): ...@@ -315,7 +323,7 @@ class msss_target_pipeline(control):
# CORRECTED_DATA column of the original MS. # CORRECTED_DATA column of the original MS.
self.run_task("ndppp", self.run_task("ndppp",
(bbs_mapfile, corrected_mapfile), (bbs_mapfile, corrected_mapfile),
clobber=False, clobber=True, #False,
suffix='', suffix='',
parset=ndppp_parset, parset=ndppp_parset,
mapfile=os.path.join(mapfile_dir, 'dppp[1].mapfile') mapfile=os.path.join(mapfile_dir, 'dppp[1].mapfile')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment