()
| 1644 | |
| 1645 | |
| 1646 | def test_dstack(): |
| 1647 | x = np.arange(5) |
| 1648 | y = np.ones(5) |
| 1649 | a = da.arange(5, chunks=2) |
| 1650 | b = da.ones(5, chunks=2) |
| 1651 | |
| 1652 | assert_eq( |
| 1653 | np.dstack((x[None, None, :], y[None, None, :])), |
| 1654 | da.dstack((a[None, None, :], b[None, None, :])), |
| 1655 | ) |
| 1656 | assert_eq(np.dstack((x[None, :], y[None, :])), da.dstack((a[None, :], b[None, :]))) |
| 1657 | assert_eq(np.dstack((x, y)), da.dstack((a, b))) |
| 1658 | |
| 1659 | |
| 1660 | @pytest.mark.parametrize( |