Skip to content

Commit 023c16b

Browse files
committed
remove read_array
1 parent 2747d69 commit 023c16b

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/zarr/api/asynchronous.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,41 +1061,6 @@ async def create(
10611061
)
10621062

10631063

1064-
async def read_array(
1065-
store: StoreLike,
1066-
*,
1067-
path: str | None = None,
1068-
zarr_format: ZarrFormat | None = None,
1069-
storage_options: dict[str, Any] | None = None,
1070-
) -> AsyncArray[ArrayV3Metadata] | AsyncArray[ArrayV2Metadata]:
1071-
"""Create an array for reading. Wraps `:func:zarr.api.asynchronous.create`.
1072-
See the documentation of that function for details.
1073-
1074-
Parameters
1075-
----------
1076-
store : Store or str
1077-
Store or path to directory in file system or name of zip file.
1078-
path : str, optional
1079-
Path under which the array is stored.
1080-
zarr_format : {2, 3, None}, optional
1081-
The zarr format to require. The default value of ``None`` will first look for Zarr v3 data,
1082-
then Zarr v2 data, then fail if neither format is found.
1083-
storage_options : dict
1084-
If using an fsspec URL to create the store, these will be passed to
1085-
the backend implementation. Ignored otherwise.
1086-
1087-
Returns
1088-
-------
1089-
z : array
1090-
The array.
1091-
"""
1092-
store_path = await make_store_path(store, path=path, mode="r", storage_options=storage_options)
1093-
return await AsyncArray.open(
1094-
store=store_path,
1095-
zarr_format=zarr_format,
1096-
)
1097-
1098-
10991064
async def empty(
11001065
shape: ChunkCoords, **kwargs: Any
11011066
) -> AsyncArray[ArrayV2Metadata] | AsyncArray[ArrayV3Metadata]:

0 commit comments

Comments
 (0)