Skip to content

Commit 898ef49

Browse files
authored
Update README with correct kwargs
1 parent 99fa8be commit 898ef49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Xarray objects backed by cubed arrays can be created either by:
2626
2. Calling `.chunk` on xarray objects,
2727
3. Passing a `chunks` argument to `xarray.open_dataset`.
2828

29-
In (2) and (3) the choice to use `cubed.Array` instead of `dask.array.Array` is made by passing the keyword argument `manager='cubed'`.
29+
In (2) and (3) the choice to use `cubed.Array` instead of `dask.array.Array` is made by passing the keyword argument `chunked_array_type='cubed'`.
30+
To pass arguments to the constructor of `cubed.Array` then pass them via the dictionary `from_array_kwargs`, e.g. `from_array_kwargs={'spec': cubed.Spec(max_mem=2_000_000)}`.
3031

3132
If cubed and cubed-xarray are installed but dask is not, then specifying the parallel array type to use is not necessary.
3233

0 commit comments

Comments
 (0)