From 1a60787452f1196b3c9418895e3b510e7afe239a Mon Sep 17 00:00:00 2001 From: tgalvin Date: Thu, 7 Nov 2024 14:21:30 +0800 Subject: [PATCH] update is done inplace, silly --- flint/prefect/common/imaging.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flint/prefect/common/imaging.py b/flint/prefect/common/imaging.py index 3a33b07e..cf00533a 100644 --- a/flint/prefect/common/imaging.py +++ b/flint/prefect/common/imaging.py @@ -330,9 +330,8 @@ def task_wsclean_imager( convergence_wsclean_options = dict(size=size, mgain=mgain) # dicts are mutable. Don't want to change for everything. Unclear to me # how prefect would behave here. - update_wsclean_options = update_wsclean_options.copy().update( - **convergence_wsclean_options - ) + update_wsclean_options = update_wsclean_options.copy() + update_wsclean_options.update(**convergence_wsclean_options) logger.warn( f"Clean divergence dertected. Rerunning. Updated options {convergence_wsclean_options=}" )