From abea4af9af97c37b2c007bf55fedfb1ce4e3fccd Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Fri, 19 Aug 2016 12:37:56 +0000 Subject: [PATCH] Task #9764: Provide input filename differently to PyBDSM to allow it to derive a proper logfile location --- CEP/Pipeline/recipes/sip/nodes/imager_source_finding.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CEP/Pipeline/recipes/sip/nodes/imager_source_finding.py b/CEP/Pipeline/recipes/sip/nodes/imager_source_finding.py index 2d5cc1fe13b..464fb940c4a 100644 --- a/CEP/Pipeline/recipes/sip/nodes/imager_source_finding.py +++ b/CEP/Pipeline/recipes/sip/nodes/imager_source_finding.py @@ -97,6 +97,9 @@ class imager_source_finding(LOFARnodeTCP): pass #do nothing bdsm_parameters[key] = parameter_value + # pybdsm needs its filename here, to derive the log location + bdsm_parameters["filename"] = input_image_local + # ***************************************************************** # 3. Start pybdsm @@ -104,8 +107,7 @@ class imager_source_finding(LOFARnodeTCP): "Starting sourcefinder bdsm on {0} using parameters:".format( input_image_local)) self.logger.debug(repr(bdsm_parameters)) - img = bdsm.process_image(bdsm_parameters, - filename = input_image_local, frequency = frequency) + img = bdsm.process_image(bdsm_parameters, frequency = frequency) # Always export the catalog img.write_catalog( -- GitLab