MCPcopy
hub / github.com/pydata/xarray / test_conjugate

Function test_conjugate

xarray/tests/test_dask.py:1870–1879  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1868
1869
1870def test_conjugate():
1871 # Test for https://github.com/pydata/xarray/issues/10302
1872 z = 1j * da.arange(100)
1873
1874 data = xr.DataArray(z, coords={"x": np.arange(100)})
1875
1876 conj_data = data.conjugate()
1877 assert dask.is_dask_collection(conj_data)
1878
1879 assert_equal(conj_data, data.conj())

Callers

nothing calls this directly

Calls 4

assert_equalFunction · 0.90
arangeMethod · 0.80
conjugateMethod · 0.45
conjMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…