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

Task #9764: Provide input filename differently to PyBDSM to allow it to derive...

Task #9764: Provide input filename differently to PyBDSM to allow it to derive a proper logfile location
parent 8df351c4
No related branches found
No related tags found
No related merge requests found
...@@ -97,6 +97,9 @@ class imager_source_finding(LOFARnodeTCP): ...@@ -97,6 +97,9 @@ class imager_source_finding(LOFARnodeTCP):
pass #do nothing pass #do nothing
bdsm_parameters[key] = parameter_value bdsm_parameters[key] = parameter_value
# pybdsm needs its filename here, to derive the log location
bdsm_parameters["filename"] = input_image_local
# ***************************************************************** # *****************************************************************
# 3. Start pybdsm # 3. Start pybdsm
...@@ -104,8 +107,7 @@ class imager_source_finding(LOFARnodeTCP): ...@@ -104,8 +107,7 @@ class imager_source_finding(LOFARnodeTCP):
"Starting sourcefinder bdsm on {0} using parameters:".format( "Starting sourcefinder bdsm on {0} using parameters:".format(
input_image_local)) input_image_local))
self.logger.debug(repr(bdsm_parameters)) self.logger.debug(repr(bdsm_parameters))
img = bdsm.process_image(bdsm_parameters, img = bdsm.process_image(bdsm_parameters, frequency = frequency)
filename = input_image_local, frequency = frequency)
# Always export the catalog # Always export the catalog
img.write_catalog( img.write_catalog(
......
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