Skip to content

Commit

Permalink
set sparse_matrices=False to avoid nuFFT warning with multidimensiona…
Browse files Browse the repository at this point in the history
…l array.
  • Loading branch information
iancze committed Nov 9, 2023
1 parent ae09abd commit 38222cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/fourier_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ def test_nufft_accuracy_batch_broadcast(coords, mock_visibility_data, tmp_path):
nchan = uu.shape[0]

# create a NuFFT layer to perform interpolations to these points
layer = fourier.NuFFT(coords=coords, nchan=nchan, uu=uu, vv=vv)
# uu and vv are multidimensional, so we should set `sparse_matrices=False`
# to avoid triggering a warning
layer = fourier.NuFFT(coords=coords, nchan=nchan, uu=uu, vv=vv, sparse_matrices=False)

# a sky Gaussian
kw = {
Expand Down

0 comments on commit 38222cd

Please sign in to comment.