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

Function test_angle

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

Source from the content-addressed store, hash-verified

340
341
342def test_angle():
343 real = np.random.randint(1, 100, size=(20, 20))
344 imag = np.random.randint(1, 100, size=(20, 20)) * 1j
345 comp = real + imag
346 dacomp = da.from_array(comp, 3)
347
348 assert_eq(da.angle(dacomp), np.angle(comp))
349 assert_eq(da.angle(dacomp, deg=True), np.angle(comp, deg=True))
350 assert isinstance(da.angle(comp), np.ndarray)
351 assert_eq(da.angle(comp), np.angle(comp))
352
353
354def test_issignedinf():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
randintMethod · 0.45

Tested by

no test coverage detected