From 988c33991d041bfaf6897848682647312f6ce9f9 Mon Sep 17 00:00:00 2001 From: AK <kutkin@gmail.com> Date: Wed, 13 Apr 2022 13:42:21 +0000 Subject: [PATCH] save wsclean repo in the container --- Dockerfile | 1 + imcal.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 795026f..b2dadfe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -185,6 +185,7 @@ FROM ubuntu:20.04 as runner RUN mkdir /src COPY --from=builder /usr/local /usr/local RUN chmod +rx /usr/local/bin/* +COPY --from=builder /src/wsclean /opt/ SHELL ["/bin/bash", "-c"] diff --git a/imcal.py b/imcal.py index f3eb164..2ceb05c 100755 --- a/imcal.py +++ b/imcal.py @@ -540,7 +540,7 @@ def main(msin, steps='all', outbase=None, cfgfile='imcal.yml', force=False): logging.info('mask step: Image exists, use --f to overwrite...') else: threshold = img_max/cfg['clean0']['max_over_thresh'] - threshold = max(threshold, 0.001) + threshold = max(threshold, 0.0001) wsclean(dical0, outname=img0, automask=None, save_source_list=False, multifreq=False, mgain=None, kwstring=f'-threshold {threshold}') create_mask(img0 +'-image.fits', img0 +'-residual.fits', clipval=10, outname=mask0, ) -- GitLab