Skip to content

Commit

Permalink
add test for waterfall_blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Feb 24, 2025
1 parent 96ca460 commit 4189805
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hera_cal/tests/test_smooth_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ def test_build_wgts_grid(self):
wgts_grid = smooth_cal._build_wgts_grid(flag_grid, time_blacklist=[False, True], freq_blacklist=[False, False, True], blacklist_wgt=.1)
np.testing.assert_array_equal(wgts_grid, [[0, 1, .1], [.1, .1, .1]])

wgts_grid = smooth_cal._build_wgts_grid(flag_grid, waterfall_blacklist=[[False, True, False], [False, False, False]], blacklist_wgt=.1)
np.testing.assert_array_equal(wgts_grid, [[0, .1, 1], [1, 1, 1]])

def test_to_anflags(self):
calfits_list = sorted(glob.glob(os.path.join(DATA_PATH, 'test_input/*.abs.calfits_54x_only')))[0::2]
uvc = UVCal()
Expand Down

0 comments on commit 4189805

Please sign in to comment.