Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate robust weights for points excluded by UV-cut. #225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions quartical/weights/robust.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def impl(residuals, flags, etas, icovariance, mode):

for r in range(n_row):
for f in range(n_chan):
if flags[r, f]:
if flags[r, f] == 1:
n_unflagged -= 1
continue
else:
Expand Down Expand Up @@ -90,7 +90,7 @@ def impl(residuals, flags, etas, icovariance, dof, mode):

for r in range(n_row):
for f in range(n_chan):
if flags[r, f]:
if flags[r, f] == 1:
continue
else:
numerator = dof + n_corr # Not correct for diagonal terms.
Expand Down Expand Up @@ -169,7 +169,7 @@ def dof_constant(etas, flags, dof, n_corr):
constant = 0
for r in range(n_row):
for f in range(n_chan):
if flags[r, f]:
if flags[r, f] == 1:
n_unflagged -= 1
continue
else:
Expand Down Expand Up @@ -217,7 +217,7 @@ def mean_weight(weights, flags):

for r in range(n_row):
for f in range(n_chan):
if flags[r, f]:
if flags[r, f] == 1:
n_unflagged -= 1
continue
else:
Expand Down