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

Function test_angle

dask/array/tests/test_ufunc.py:329–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327
328
329def test_angle():
330 real = np.random.randint(1, 100, size=(20, 20))
331 imag = np.random.randint(1, 100, size=(20, 20)) * 1j
332 comp = real + imag
333 dacomp = da.from_array(comp, 3)
334
335 assert_eq(da.angle(dacomp), np.angle(comp))
336 assert_eq(da.angle(dacomp, deg=True), np.angle(comp, deg=True))
337 assert isinstance(da.angle(comp), np.ndarray)
338 assert_eq(da.angle(comp), np.angle(comp))
339
340
341def test_issignedinf():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
randintMethod · 0.45

Tested by

no test coverage detected