Skip to content

Commit d7d0070

Browse files
committed
more api pruning
1 parent 42b9804 commit d7d0070

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

src/zarr/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
create_array,
1010
create_group,
1111
create_hierarchy,
12-
create_nodes,
1312
empty,
1413
empty_like,
1514
full,

src/zarr/api/synchronous.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"create",
5151
"create_array",
5252
"create_hierarchy",
53-
"create_nodes",
5453
"empty",
5554
"empty_like",
5655
"full",
@@ -1176,33 +1175,3 @@ def create_hierarchy(
11761175

11771176
for key, value in sync(_collect_aiterator(coro)):
11781177
yield key, _parse_async_node(value)
1179-
1180-
1181-
def create_nodes(
1182-
*, store: Store, nodes: dict[str, GroupMetadata | ArrayV2Metadata | ArrayV3Metadata]
1183-
) -> Iterator[tuple[str, Group | Array]]:
1184-
"""Create a collection of arrays and / or groups concurrently.
1185-
1186-
Note: no attempt is made to validate that these arrays and / or groups collectively form a
1187-
valid Zarr hierarchy. It is the responsibility of the caller of this function to ensure that
1188-
the ``nodes`` parameter satisfies any correctness constraints.
1189-
1190-
Parameters
1191-
----------
1192-
store : Store
1193-
The storage backend to use.
1194-
nodes : dict[str, GroupMetadata | ArrayV3Metadata | ArrayV2Metadata]
1195-
A dictionary defining the hierarchy. The keys are the paths of the nodes
1196-
in the hierarchy, and the values are the metadata of the nodes. The
1197-
metadata must be either an instance of GroupMetadata, ArrayV3Metadata
1198-
or ArrayV2Metadata.
1199-
1200-
Yields
1201-
------
1202-
Group | Array
1203-
The created nodes.
1204-
"""
1205-
coro = async_api.create_nodes(store=store, nodes=nodes)
1206-
1207-
for key, value in sync(_collect_aiterator(coro)):
1208-
yield key, _parse_async_node(value)

0 commit comments

Comments
 (0)