Skip to content

Commit 1024b3e

Browse files
committed
simplify quickstart xarray indexing syntax (no .item() needed)
1 parent 6251096 commit 1024b3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/examples/quickstart.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727
)
2828

2929
# check CHD
30-
assert chd.data["head"][0, 0].item() == 1.0
31-
assert chd.data.head.sel(per=0)[99].item() == 0.0
32-
assert chd.data.head.sel(per=0, node=99).item() == 0.0
30+
assert chd.data["head"][0, 0] == 1.0
31+
assert chd.data.head.sel(per=0)[99] == 0.0
3332
assert np.allclose(chd.data.head[:, 1:99], np.full(98, 1e30))
3433

3534
# check DIS

0 commit comments

Comments
 (0)