Skip to content

Commit

Permalink
Do not just fail if there are no calibrator sources. #159
Browse files Browse the repository at this point in the history
E.g. for dummy directions that will never self-calibrated anyway.
  • Loading branch information
AHorneffer committed Nov 15, 2016
1 parent 8815f0a commit 0fd0764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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 any([s > large_size_arcmin for s in sizes_arcmin]):
if sizes_arcmin and any([s > large_size_arcmin for s in sizes_arcmin]):
self.atrous_do = True
else:
self.atrous_do = False
Expand Down

0 comments on commit 0fd0764

Please sign in to comment.