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

Function myfilter

dask/array/tests/test_gufunc.py:520–524  ·  view source on GitHub ↗
(x, cn=10, axis=-1)

Source from the content-addressed store, hash-verified

518
519def test_apply_gufunc_axis_02b():
520 def myfilter(x, cn=10, axis=-1):
521 y = np.fft.fft(x, axis=axis)
522 y[cn:-cn] = 0
523 nx = np.fft.ifft(y, axis=axis)
524 return np.real(nx)
525
526 a = np.random.default_rng().standard_normal((3, 6, 4))
527 da_ = da.from_array(a, chunks=2)

Callers 1

Calls 1

realMethod · 0.45

Tested by

no test coverage detected