Skip to content

Commit

Permalink
document test
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-a-cox committed Feb 13, 2025
1 parent 31338c0 commit 55b5d29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hera_filters/tests/test_dspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,7 @@ def test_sparse_linear_fit_2d_non_binary_wgts():
data = np.dot(time_basis, x_true).dot(freq_basis.T)
flags = (time_flags | freq_flags)

# Generate separable, non-binary weights
axis_1_weights = (~time_flags[:, 0]).astype(float) * np.random.randint(1, 10, size=(ntimes, ))
axis_2_weights = (~freq_flags[0]).astype(float)
wgts = np.outer(axis_1_weights, axis_2_weights)
Expand Down

0 comments on commit 55b5d29

Please sign in to comment.