()
| 6101 | |
| 6102 | |
| 6103 | def test_from_array_copies(): |
| 6104 | x = np.arange(60).reshape((6, 10)) |
| 6105 | original_array = x.copy() |
| 6106 | chunks = (2, 3) |
| 6107 | dx = da.from_array(x, chunks=chunks) |
| 6108 | x[2:4, x[0] > 3] = -5 |
| 6109 | assert_eq(original_array, dx) |
| 6110 | |
| 6111 | |
| 6112 | def test_from_array_xarray_dataarray(): |