Skip to content

Commit

Permalink
report mean and var ressq before and after reweighting
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Oct 10, 2024
1 parent df9c779 commit cee6165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pfb/operators/gridder.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def image_data_products(dsl,
ressq = (residual_vis*wgt*residual_vis.conj()).real
meanf = np.mean(ressq[mask>0])
stdf = np.std(ressq[mask>0])
print(f"Band {bandid} after: mean = {meani:.3e}, std = {stdi:.3e}")
print(f"Band {bandid} after: mean = {meanf:.3e}, std = {stdf:.3e}")

# import ipdb; ipdb.set_trace()

Expand Down Expand Up @@ -768,6 +768,7 @@ def compute_residual(dsl,
tassign = time() - ti

# we only need to write MODEL and RESIDUAL
# ds = ds[['RESIDUAL','MODEL']]
for var in ds.data_vars:
if var not in ['RESIDUAL', 'MODEL']:
ds = ds.drop_vars(var)
Expand Down

0 comments on commit cee6165

Please sign in to comment.