Skip to content

Commit

Permalink
fix(RFIMask): inverse of RFI mask was applied
Browse files Browse the repository at this point in the history
  • Loading branch information
jrs65 committed Apr 30, 2020
1 parent 3e873b9 commit 80f55bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion draco/analysis/flagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def process(self, tstream, rfimask):
ef = sf + tstream.weight.local_shape[0]

# Mask the data
tstream.weight[:] *= rfimask.mask[sf:ef][bcast_slice]
tstream.weight[:] *= (~rfimask.mask[sf:ef][bcast_slice]).astype(np.float32)

return tstream

Expand Down
3 changes: 3 additions & 0 deletions draco/core/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,9 @@ def pol(self):

class RFIMask(TODContainer):
"""A container for holding RFI mask.
The mask is `True` for contaminated samples that should be excluded, and
`False` for clean samples.
"""

_axes = ("freq",)
Expand Down

0 comments on commit 80f55bf

Please sign in to comment.