Skip to content

Commit

Permalink
robustness -> opts.robustness in stokes2im
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Aug 19, 2024
1 parent 1995e45 commit d1885c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pfb/utils/stokes2im.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit d1885c3

Please sign in to comment.