Skip to content

Commit

Permalink
update is done inplace, silly
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalvin committed Nov 7, 2024
1 parent 769eac6 commit 1a60787
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flint/prefect/common/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=}"
)
Expand Down

0 comments on commit 1a60787

Please sign in to comment.