Skip to content

Commit c377200

Browse files
authored
Remove Spec from getting started doc (#746)
1 parent 8123d9e commit c377200

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/getting-started.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,18 @@ conda install -c conda-forge cubed
2727
First, we'll create a small array `a`:
2828

2929
```python
30-
import cubed
3130
import cubed.array_api as xp
32-
spec = cubed.Spec(work_dir="tmp", allowed_mem="100kB")
33-
a = xp.asarray([[1, 2, 3], [4, 5, 6], [7, 8, 9]], chunks=(2, 2), spec=spec)
31+
a = xp.asarray([[1, 2, 3], [4, 5, 6], [7, 8, 9]], chunks=(2, 2))
3432
```
3533

3634
Cubed implements the [Python Array API standard](https://data-apis.org/array-api/latest/), which is essentially a subset of NumPy, and is imported as `xp` by convention.
3735

38-
Notice that we also specify chunks, just like in Dask Array, and a {py:class}`Spec <cubed.Spec>` object that describes the resources available to run computations.
36+
Notice that we also specify chunks, just like in Dask Array.
3937

4038
Next we create another array `b` and add to two array together to get `c`.
4139

4240
```python
43-
b = xp.asarray([[1, 1, 1], [1, 1, 1], [1, 1, 1]], chunks=(2, 2), spec=spec)
41+
b = xp.asarray([[1, 1, 1], [1, 1, 1], [1, 1, 1]], chunks=(2, 2))
4442
c = xp.add(a, b)
4543
```
4644

0 commit comments

Comments
 (0)