Skip to content

Commit

Permalink
Bugfix to my previous commit and added debug messages. #159
Browse files Browse the repository at this point in the history
  • Loading branch information
AHorneffer committed Nov 15, 2016
1 parent 0fd0764 commit 54a5d58
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion factor/lib/direction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
"""
Expand Down

0 comments on commit 54a5d58

Please sign in to comment.