Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion seek/mitigation/sum_threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_rfi_mask(tod, mask=None, chi_1=35000, eta_i=[0.5, 0.55, 0.62, 0.75, 1],
if not suppress_dilation:
if di_kwargs is None: di_kwargs = get_di_kwrags()

dilated_mask = binary_mask_dilation(dilated_mask - mask, **di_kwargs)
dilated_mask = binary_mask_dilation(dilated_mask ^ mask, **di_kwargs)

if plotting: sum_threshold_utils.plot_dilation(st_mask, mask, dilated_mask)

Expand Down
4 changes: 2 additions & 2 deletions test/test_mask_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_no_moon_sun_masking(self):
tod_vx = tod,
tod_vy = tod,
coords = Coords(times[:,0], times[:,1], times[:,1]*0.0, times[:,1]*0.0, times[:,1]*0.0),
strategy_start=datetime(2015, 01, 01, 00, 00, 00))
strategy_start=datetime(2015, 1, 1, 0, 0, 0))

plugin = mask_objects.Plugin(ctx)
plugin.mask_objects()
Expand Down Expand Up @@ -90,4 +90,4 @@ def test_moon_masking(self):

assert np.any(tod.mask == True)