| 669 | assert count[0] == 1 |
| 670 | |
| 671 | def test_duplicate_dims(self): |
| 672 | data = np.random.normal(size=(4, 4)) |
| 673 | with pytest.warns(UserWarning, match="Duplicate dimension"): |
| 674 | arr = DataArray(data, dims=("x", "x")) |
| 675 | with pytest.warns(UserWarning, match="Duplicate dimension"): |
| 676 | chunked_array = arr.chunk({"x": 2}) |
| 677 | assert chunked_array.chunks == ((2, 2), (2, 2)) |
| 678 | assert chunked_array.chunksizes == {"x": (2, 2)} |
| 679 | |
| 680 | def test_stack(self): |
| 681 | data = da.random.normal(size=(2, 3, 4), chunks=(1, 3, 4)) |