Skip to content
Snippets Groups Projects
Commit 5ae3dc9b authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #8437: Use globally unique temp file names in imager_awimager and...

Task #8437: Use globally unique temp file names in imager_awimager and imager_source_finding recipes
parent 6647fe92
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ class imager_awimager(BaseRecipe, RemoteCommandRecipeMixIn):
sourcedb_map.iterator = input_map.iterator = output_map.iterator = \
DataMap.SkipIterator
for measurement_item, source_item in zip(input_map, sourcedb_map):
for idx, (measurement_item, source_item) in enumerate(zip(input_map, sourcedb_map)):
if measurement_item.skip or source_item.skip:
jobs.append(None)
continue
......@@ -134,7 +134,7 @@ class imager_awimager(BaseRecipe, RemoteCommandRecipeMixIn):
self.environment,
self.inputs['parset'],
self.inputs['working_directory'],
self.inputs['output_image'],
"%s-%s" % (self.inputs['output_image'], idx),
measurement_path,
sourcedb_path,
self.inputs['mask_patch_size'],
......
......@@ -91,15 +91,15 @@ class imager_source_finding(BaseRecipe, RemoteCommandRecipeMixIn):
node_command = " python %s" % (self.__file__.replace("master", "nodes"))
jobs = []
input_map.iterator = DataMap.SkipIterator
for item in input_map:
for idx, item in enumerate(input_map):
arguments = [item.file,
self.inputs["bdsm_parset_file_run1"],
self.inputs["bdsm_parset_file_run2x"],
catalog_output_path,
"%s-%s" % (catalog_output_path, idx),
os.path.join(
self.inputs["working_directory"],
"bdsm_output.img"),
self.inputs['sourcedb_target_path'],
"bdsm_output-%s.img" % (idx, )),
"%s-%s" % (self.inputs['sourcedb_target_path'], idx),
self.environment,
self.inputs['working_directory'],
self.inputs['makesourcedb_path']
......
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