Skip to content
Snippets Groups Projects
Commit 988c3399 authored by Alexander Kutkin's avatar Alexander Kutkin
Browse files

save wsclean repo in the container

parent 4fded460
No related branches found
No related tags found
No related merge requests found
Pipeline #28735 passed
......@@ -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"]
......
......@@ -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, )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment