From d1885c304ad67ce2eb591da628ce4f0f00cacda1 Mon Sep 17 00:00:00 2001 From: landmanbester Date: Mon, 19 Aug 2024 21:20:21 +0200 Subject: [PATCH] robustness -> opts.robustness in stokes2im --- pfb/utils/stokes2im.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pfb/utils/stokes2im.py b/pfb/utils/stokes2im.py index 626c313d6..eb7685695 100644 --- a/pfb/utils/stokes2im.py +++ b/pfb/utils/stokes2im.py @@ -240,7 +240,7 @@ def single_stokes_image( wcount = mask.sum() if wcount: ovar = ressq.sum()/wcount # use 67% quantile? - weight = (l2reweight_dof + 1)/(l2reweight_dof + ressq/ovar)/ovar + weight = (opts.l2reweight_dof + 1)/(opts.l2reweight_dof + ressq/ovar)/ovar else: weight = None @@ -260,7 +260,7 @@ def single_stokes_image( freq, nx, ny, cell_rad, cell_rad, - robustness) + opts.robustness) if weight is not None: weight *= imwgt else: