MCPcopy Create free account
hub / github.com/dask/dask / test_fftfreq

Function test_fftfreq

dask/array/tests/test_fft.py:206–214  ·  view source on GitHub ↗
(n, d, c)

Source from the content-addressed store, hash-verified

204@pytest.mark.parametrize("d", [1.0, 0.5, 2 * np.pi])
205@pytest.mark.parametrize("c", [lambda m: m, lambda m: (1, m - 1)])
206def test_fftfreq(n, d, c):
207 c = c(n)
208
209 r1 = np.fft.fftfreq(n, d)
210 r2 = da.fft.fftfreq(n, d, chunks=c)
211
212 assert normalize_chunks(c, r2.shape) == r2.chunks
213
214 assert_eq(r1, r2)
215
216
217@pytest.mark.parametrize("n", [1, 2, 3, 6, 7])

Callers

nothing calls this directly

Calls 2

normalize_chunksFunction · 0.90
assert_eqFunction · 0.90

Tested by

no test coverage detected