From 54a5d58eccfc2cfd7cc51c144db6df435bc7de66 Mon Sep 17 00:00:00 2001 From: Andreas Horneffer Date: Tue, 15 Nov 2016 17:26:16 +0100 Subject: [PATCH] Bugfix to my previous commit and added debug messages. #159 --- factor/lib/direction.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/factor/lib/direction.py b/factor/lib/direction.py index 91b66ac3..1620b1e8 100644 --- a/factor/lib/direction.py +++ b/factor/lib/direction.py @@ -387,7 +387,7 @@ def set_imaging_parameters(self, nbands, nbands_selfcal, padding=1.05): # Set whether to use wavelet module in calibrator masking if self.atrous_do is None: sizes_arcmin = self.get_source_sizes(cal_only=True) - if sizes_arcmin and any([s > large_size_arcmin for s in sizes_arcmin]): + if sizes_arcmin is not None and any([s > large_size_arcmin for s in sizes_arcmin]): self.atrous_do = True else: self.atrous_do = False @@ -398,6 +398,13 @@ def set_imaging_parameters(self, nbands, nbands_selfcal, padding=1.05): else: self.wsclean_selfcal_multiscale = False + # Let the user know what we are doing + if self.wsclean_selfcal_multiscale and self.mscale_field_do: + self.log.debug("Will do multiscale-cleaning for calibrator and facet.") + elif self.wsclean_selfcal_multiscale: + self.log.debug("Will do multiscale-cleaning for calibrator only.") + elif self.mscale_field_do: + self.log.debug("Will do multiscale-cleaning for facet only.") def get_optimum_size(self, size): """