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
Branches improve-docs
Tags
No related merge requests found
Pipeline #28735 passed
...@@ -185,6 +185,7 @@ FROM ubuntu:20.04 as runner ...@@ -185,6 +185,7 @@ FROM ubuntu:20.04 as runner
RUN mkdir /src RUN mkdir /src
COPY --from=builder /usr/local /usr/local COPY --from=builder /usr/local /usr/local
RUN chmod +rx /usr/local/bin/* RUN chmod +rx /usr/local/bin/*
COPY --from=builder /src/wsclean /opt/
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
......
...@@ -540,7 +540,7 @@ def main(msin, steps='all', outbase=None, cfgfile='imcal.yml', force=False): ...@@ -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...') logging.info('mask step: Image exists, use --f to overwrite...')
else: else:
threshold = img_max/cfg['clean0']['max_over_thresh'] 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, wsclean(dical0, outname=img0, automask=None, save_source_list=False, multifreq=False, mgain=None,
kwstring=f'-threshold {threshold}') kwstring=f'-threshold {threshold}')
create_mask(img0 +'-image.fits', img0 +'-residual.fits', clipval=10, outname=mask0, ) 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