MCPcopy Index your code
hub / github.com/pydata/xarray / test_align

Method test_align

xarray/tests/test_dataarray.py:3324–3330  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3322 a.fillna(np.array([1, 2]))
3323
3324 def test_align(self) -> None:
3325 array = DataArray(
3326 np.random.random((6, 8)), coords={"x": list("abcdef")}, dims=["x", "y"]
3327 )
3328 array1, array2 = align(array, array[:5], join="inner")
3329 assert_identical(array1, array[:5])
3330 assert_identical(array2, array[:5])
3331
3332 def test_align_dtype(self) -> None:
3333 # regression test for #264

Callers

nothing calls this directly

Calls 3

DataArrayClass · 0.90
alignFunction · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected