Skip to content

Commit bd43e22

Browse files
committed
Cosmetic changes
1 parent ef43977 commit bd43e22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/tree-store.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
# Create a hierarchical store backed by a zip file
1616
with blosc2.TreeStore("example_tree.b2z", mode="w") as tstore:
17-
# Create a small hierarchy. Data must be stored at leaves.
18-
tstore["/child0/data"] = np.array([1, 2, 3]) # embedded (numpy)
19-
tstore["/child0/child1/data"] = blosc2.ones(3) # embedded (NDArray)
20-
tstore["/child0/child2"] = blosc2.arange(3) # embedded (NDArray)
17+
# Create a small hierarchy
18+
tstore["/child0/data"] = np.array([1, 2, 3])
19+
tstore["/child0/child1/data"] = blosc2.ones(3)
20+
tstore["/child0/child2"] = blosc2.arange(3)
2121

22-
# External array stored as separate .b2nd file
22+
# External arrays can also be included
2323
ext = blosc2.linspace(0, 1, 5, urlpath="external_leaf.b2nd", mode="w")
2424
ext.vlmeta["desc"] = "external /dir1/node3 metadata" # NDArray-level metadata
2525
tstore["/dir1/node3"] = ext
2626

27-
# # Remote array (read-only), referenced via URLPath
27+
# Remote array (read-only), referenced via URLPath
2828
urlpath = blosc2.URLPath("@public/examples/ds-1d.b2nd", "https://cat2.cloud/demo")
2929
arr_remote = blosc2.open(urlpath, mode="r")
3030
tstore["/dir2/remote"] = arr_remote

0 commit comments

Comments
 (0)