From 1428a3d4f931671fe8bf26a27d155ecef37d3f50 Mon Sep 17 00:00:00 2001 From: Wouter Klijn <klijn@astron.nl> Date: Fri, 29 Nov 2013 12:10:01 +0000 Subject: [PATCH] Task #4902: Merge with trunk failed: not all changes were ported. --- .../recipes/sip/nodes/imager_awimager.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/CEP/Pipeline/recipes/sip/nodes/imager_awimager.py b/CEP/Pipeline/recipes/sip/nodes/imager_awimager.py index 139cb365fc5..f32e6f7e9e5 100644 --- a/CEP/Pipeline/recipes/sip/nodes/imager_awimager.py +++ b/CEP/Pipeline/recipes/sip/nodes/imager_awimager.py @@ -250,22 +250,22 @@ class imager_awimager(LOFARnodeTCP): # calculate a sizeconverter value (to be applied to the cellsize) if npix < 256: self.logger.warn("Using a image size smaller then 256x256:" - " This leads to problematic imaging in some instances!!") - - cell_size_formatted = str( - int(round(cell_size))) + 'arcsec' - - self.logger.info("Using the following dynamic generated awimager parameters:" - " cell_size: {0}, npix: {1},".format( - cell_size_formatted, npix) + - " w_max: {0}, w_proj_planes: {1}".format(w_max, w_proj_planes)) + " This leads to problematic imaging in some instances!!") # If we are not autocalculating based on ms or fov, use the npix # and cell_size specified in the parset # keep the wmax and w_proj_planes if (not autogenerate_parameters and not specify_fov): npix = parset_object.getString('npix') - cell_size = parset_object.getString('cellsize') + cell_size_formatted = parset_object.getString('cellsize') + else: + cell_size_formatted = str( + int(round(cell_size))) + 'arcsec' + + self.logger.info("Using the following awimager parameters:" + " cell_size: {0}, npix: {1},".format( + cell_size_formatted, npix) + + " w_max: {0}, w_proj_planes: {1}".format(w_max, w_proj_planes)) return cell_size_formatted, str(npix), str(w_max), str(w_proj_planes) -- GitLab