MCPcopy Index your code
hub / github.com/dask/dask / test_angle

Function test_angle

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
randintMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…