@@ -198,8 +198,8 @@ def open(
198
198
If using an fsspec URL to create the store, these will be passed to
199
199
the backend implementation. Ignored otherwise.
200
200
**kwargs
201
- Additional parameters are passed through to :func:` zarr.api.asynchronous.open_array` or
202
- :func:` zarr.api.asynchronous.open_group` .
201
+ Additional parameters are passed through to [ zarr.api.asynchronous.open_array][] or
202
+ [ zarr.api.asynchronous.open_group][] .
203
203
204
204
Returns
205
205
-------
@@ -225,7 +225,7 @@ def open(
225
225
226
226
def open_consolidated (* args : Any , use_consolidated : Literal [True ] = True , ** kwargs : Any ) -> Group :
227
227
"""
228
- Alias for :func: `open_group` with ``use_consolidated=True``.
228
+ Alias for [ `open_group`][zarr.api.synchronous.open_group] with ``use_consolidated=True``.
229
229
"""
230
230
return Group (
231
231
sync (async_api .open_consolidated (* args , use_consolidated = use_consolidated , ** kwargs ))
@@ -290,7 +290,7 @@ def save_array(
290
290
If using an fsspec URL to create the store, these will be passed to
291
291
the backend implementation. Ignored otherwise.
292
292
**kwargs
293
- Passed through to :func: `create`, e.g., compressor.
293
+ Passed through to [ `create`][zarr.api.synchronous.create] , e.g., compressor.
294
294
"""
295
295
return sync (
296
296
async_api .save_array (
@@ -382,7 +382,7 @@ def array(data: npt.ArrayLike | Array, **kwargs: Any) -> Array:
382
382
data : array_like
383
383
The data to fill the array with.
384
384
**kwargs
385
- Passed through to :func: `create`.
385
+ Passed through to [ `create`][zarr.api.synchronous.create] .
386
386
387
387
Returns
388
388
-------
@@ -483,12 +483,12 @@ def open_group(
483
483
Store or path to directory in file system or name of zip file.
484
484
485
485
Strings are interpreted as paths on the local file system
486
- and used as the ``root`` argument to :class:` zarr.storage.LocalStore` .
486
+ and used as the ``root`` argument to [ zarr.storage.LocalStore][] .
487
487
488
488
Dictionaries are used as the ``store_dict`` argument in
489
- :class:` zarr.storage.MemoryStore`` .
489
+ [ zarr.storage.MemoryStore][] .
490
490
491
- By default (``store=None``) a new :class:` zarr.storage.MemoryStore`
491
+ By default (``store=None``) a new [ zarr.storage.MemoryStore][]
492
492
is created.
493
493
494
494
mode : {'r', 'r+', 'a', 'w', 'w-'}, optional
@@ -580,7 +580,7 @@ def create_group(
580
580
The zarr format to use when saving.
581
581
If no ``zarr_format`` is provided, the default format will be used.
582
582
This default can be changed by modifying the value of ``default_zarr_format``
583
- in :mod: `zarr.core. config`.
583
+ in [ `zarr.config`][zarr.config] .
584
584
storage_options : dict
585
585
If using an fsspec URL to create the store, these will be passed to
586
586
the backend implementation. Ignored otherwise.
@@ -781,7 +781,7 @@ def create_array(
781
781
) -> Array :
782
782
"""Create an array.
783
783
784
- This function wraps :func:` zarr.core.array.create_array` .
784
+ This function wraps [ zarr.core.array.create_array][] .
785
785
786
786
Parameters
787
787
----------
@@ -811,14 +811,14 @@ def create_array(
811
811
of ``ArrayArrayCodec``.
812
812
If no ``filters`` are provided, a default set of filters will be used.
813
813
These defaults can be changed by modifying the value of ``array.v3_default_filters``
814
- in :mod: `zarr.core. config`.
814
+ in [ `zarr.config`][zarr.config] .
815
815
Use ``None`` to omit default filters.
816
816
817
817
For Zarr format 2, a "filter" can be any numcodecs codec; you should ensure that the
818
818
the order if your filters is consistent with the behavior of each filter.
819
819
If no ``filters`` are provided, a default set of filters will be used.
820
820
These defaults can be changed by modifying the value of ``array.v2_default_filters``
821
- in :mod: `zarr.core. config`.
821
+ in [ `zarr.config`][zarr.config] .
822
822
Use ``None`` to omit default filters.
823
823
compressors : Iterable[Codec], optional
824
824
List of compressors to apply to the array. Compressors are applied in order, and after any
@@ -828,20 +828,20 @@ def create_array(
828
828
returns another bytestream. Multiple compressors my be provided for Zarr format 3.
829
829
If no ``compressors`` are provided, a default set of compressors will be used.
830
830
These defaults can be changed by modifying the value of ``array.v3_default_compressors``
831
- in :mod: `zarr.core. config`.
831
+ in [ `zarr.config`][zarr.config] .
832
832
Use ``None`` to omit default compressors.
833
833
834
834
For Zarr format 2, a "compressor" can be any numcodecs codec. Only a single compressor may
835
835
be provided for Zarr format 2.
836
836
If no ``compressor`` is provided, a default compressor will be used.
837
- in :mod: `zarr.core. config`.
837
+ in [ `zarr.config`][zarr.config] .
838
838
Use ``None`` to omit the default compressor.
839
839
serializer : dict[str, JSON] | ArrayBytesCodec, optional
840
840
Array-to-bytes codec to use for encoding the array data.
841
841
Zarr format 3 only. Zarr format 2 arrays use implicit array-to-bytes conversion.
842
842
If no ``serializer`` is provided, a default serializer will be used.
843
843
These defaults can be changed by modifying the value of ``array.v3_default_serializer``
844
- in :mod: `zarr.core. config`.
844
+ in [ `zarr.config`][zarr.config] .
845
845
fill_value : Any, optional
846
846
Fill value for the array.
847
847
order : {"C", "F"}, optional
@@ -851,7 +851,7 @@ def create_array(
851
851
is a runtime parameter for Zarr format 3 arrays. The recommended way to specify the memory
852
852
order for Zarr format 3 arrays is via the ``config`` parameter, e.g. ``{'config': 'C'}``.
853
853
If no ``order`` is provided, a default order will be used.
854
- This default can be changed by modifying the value of ``array.order`` in :mod: `zarr.core. config`.
854
+ This default can be changed by modifying the value of ``array.order`` in [ `zarr.config`][zarr.config] .
855
855
zarr_format : {2, 3}, optional
856
856
The zarr format to use when saving.
857
857
attributes : dict, optional
@@ -1021,7 +1021,7 @@ def from_array(
1021
1021
- dict[str, JSON]: A dict representation of an ``ArrayBytesCodec``.
1022
1022
- ArrayBytesCodec: An instance of ``ArrayBytesCodec``.
1023
1023
- "auto": a default serializer will be used. These defaults can be changed by modifying the value of
1024
- ``array.v3_default_serializer`` in :mod: `zarr.core. config`.
1024
+ ``array.v3_default_serializer`` in [ `zarr.config`][zarr.config] .
1025
1025
- "keep": Retain the serializer of the input array if it is a zarr Array.
1026
1026
1027
1027
fill_value : Any, optional
@@ -1145,7 +1145,7 @@ def empty(shape: tuple[int, ...], **kwargs: Any) -> Array:
1145
1145
shape : int or tuple of int
1146
1146
Shape of the empty array.
1147
1147
**kwargs
1148
- Keyword arguments passed to :func:` zarr.api.asynchronous.create` .
1148
+ Keyword arguments passed to [ zarr.api.asynchronous.create][] .
1149
1149
1150
1150
Returns
1151
1151
-------
@@ -1172,7 +1172,7 @@ def empty_like(a: ArrayLike, **kwargs: Any) -> Array:
1172
1172
a : array-like
1173
1173
The array to create an empty array like.
1174
1174
**kwargs
1175
- Keyword arguments passed to :func:` zarr.api.asynchronous.create` .
1175
+ Keyword arguments passed to [ zarr.api.asynchronous.create][] .
1176
1176
1177
1177
Returns
1178
1178
-------
@@ -1199,7 +1199,7 @@ def full(shape: tuple[int, ...], fill_value: Any, **kwargs: Any) -> Array:
1199
1199
fill_value : scalar
1200
1200
Fill value.
1201
1201
**kwargs
1202
- Keyword arguments passed to :func:` zarr.api.asynchronous.create` .
1202
+ Keyword arguments passed to [ zarr.api.asynchronous.create][] .
1203
1203
1204
1204
Returns
1205
1205
-------
@@ -1219,7 +1219,7 @@ def full_like(a: ArrayLike, **kwargs: Any) -> Array:
1219
1219
a : array-like
1220
1220
The array to create an empty array like.
1221
1221
**kwargs
1222
- Keyword arguments passed to :func:` zarr.api.asynchronous.create` .
1222
+ Keyword arguments passed to [ zarr.api.asynchronous.create][] .
1223
1223
1224
1224
Returns
1225
1225
-------
@@ -1238,7 +1238,7 @@ def ones(shape: tuple[int, ...], **kwargs: Any) -> Array:
1238
1238
shape : int or tuple of int
1239
1239
Shape of the empty array.
1240
1240
**kwargs
1241
- Keyword arguments passed to :func:` zarr.api.asynchronous.create` .
1241
+ Keyword arguments passed to [ zarr.api.asynchronous.create][] .
1242
1242
1243
1243
Returns
1244
1244
-------
@@ -1257,7 +1257,7 @@ def ones_like(a: ArrayLike, **kwargs: Any) -> Array:
1257
1257
a : array-like
1258
1258
The array to create an empty array like.
1259
1259
**kwargs
1260
- Keyword arguments passed to :func:` zarr.api.asynchronous.create` .
1260
+ Keyword arguments passed to [ zarr.api.asynchronous.create][] .
1261
1261
1262
1262
Returns
1263
1263
-------
@@ -1340,7 +1340,7 @@ def zeros(shape: tuple[int, ...], **kwargs: Any) -> Array:
1340
1340
shape : int or tuple of int
1341
1341
Shape of the empty array.
1342
1342
**kwargs
1343
- Keyword arguments passed to :func:` zarr.api.asynchronous.create` .
1343
+ Keyword arguments passed to [ zarr.api.asynchronous.create][] .
1344
1344
1345
1345
Returns
1346
1346
-------
@@ -1359,7 +1359,7 @@ def zeros_like(a: ArrayLike, **kwargs: Any) -> Array:
1359
1359
a : array-like
1360
1360
The array to create an empty array like.
1361
1361
**kwargs
1362
- Keyword arguments passed to :func:` zarr.api.asynchronous.create` .
1362
+ Keyword arguments passed to [ zarr.api.asynchronous.create][] .
1363
1363
1364
1364
Returns
1365
1365
-------
0 commit comments