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

Function test_fft

dask/array/tests/test_xarray.py:49–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def test_fft():
50 # Regression test for https://github.com/dask/dask/issues/9679
51 coord = da.arange(8, chunks=-1)
52 data = da.random.random((8, 8), chunks=-1) + 1
53 x = xr.DataArray(data, coords={"x": coord, "y": coord}, dims=["x", "y"])
54 result = da.fft.fft(x)
55 expected = da.fft.fft(x.data)
56 assert_eq(result, expected)
57
58
59def test_polyfit_reshaping():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
arangeMethod · 0.45
randomMethod · 0.45

Tested by

no test coverage detected