Skip to content

Commit 7f3e224

Browse files
committed
Update cross-references
1 parent fe04ffd commit 7f3e224

File tree

7 files changed

+125
-125
lines changed

7 files changed

+125
-125
lines changed

src/zarr/abc/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ async def getsize_prefix(self, prefix: str) -> int:
450450
Notes
451451
-----
452452
``getsize_prefix`` is just provided as a potentially faster alternative to
453-
listing all the keys under a prefix calling :meth:`Store.getsize` on each.
453+
listing all the keys under a prefix calling [`Store.getsize`][zarr.abc.store.Store.getsize] on each.
454454
455455
In general, ``prefix`` should be the path of an Array or Group in the Store.
456456
Implementations may differ on the behavior when some other ``prefix``

src/zarr/api/asynchronous.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ async def open(
341341
If the store is backed by an fsspec-based implementation, then this dict will be passed to
342342
the Store constructor for that implementation. Ignored otherwise.
343343
**kwargs
344-
Additional parameters are passed through to :func:`zarr.creation.open_array` or
345-
:func:`zarr.hierarchy.open_group`.
344+
Additional parameters are passed through to [zarr.creation.open_array][] or
345+
[zarr.api.asynchronous.open_group][].
346346
347347
Returns
348348
-------
@@ -387,7 +387,7 @@ async def open_consolidated(
387387
*args: Any, use_consolidated: Literal[True] = True, **kwargs: Any
388388
) -> AsyncGroup:
389389
"""
390-
Alias for :func:`open_group` with ``use_consolidated=True``.
390+
Alias for [`open_group`][zarr.api.asynchronous.open_group] with ``use_consolidated=True``.
391391
"""
392392
if use_consolidated is not True:
393393
raise TypeError(
@@ -457,7 +457,7 @@ async def save_array(
457457
If using an fsspec URL to create the store, these will be passed to
458458
the backend implementation. Ignored otherwise.
459459
**kwargs
460-
Passed through to :func:`create`, e.g., compressor.
460+
Passed through to [`create`][zarr.api.asynchronous.create], e.g., compressor.
461461
"""
462462
zarr_format = (
463463
_handle_zarr_version_or_format(zarr_version=zarr_version, zarr_format=zarr_format)
@@ -587,7 +587,7 @@ async def array(
587587
data : array_like
588588
The data to fill the array with.
589589
**kwargs
590-
Passed through to :func:`create`.
590+
Passed through to [`create`][zarr.api.asynchronous.create].
591591
592592
Returns
593593
-------
@@ -723,7 +723,7 @@ async def create_group(
723723
The zarr format to use when saving.
724724
If no ``zarr_format`` is provided, the default format will be used.
725725
This default can be changed by modifying the value of ``default_zarr_format``
726-
in :mod:`zarr.core.config`.
726+
in [`zarr.config`][zarr.config].
727727
storage_options : dict
728728
If using an fsspec URL to create the store, these will be passed to
729729
the backend implementation. Ignored otherwise.
@@ -772,12 +772,12 @@ async def open_group(
772772
Store or path to directory in file system or name of zip file.
773773
774774
Strings are interpreted as paths on the local file system
775-
and used as the ``root`` argument to :class:`zarr.storage.LocalStore`.
775+
and used as the ``root`` argument to [zarr.storage.LocalStore][].
776776
777777
Dictionaries are used as the ``store_dict`` argument in
778-
:class:`zarr.storage.MemoryStore``.
778+
[zarr.storage.MemoryStore][].
779779
780-
By default (``store=None``) a new :class:`zarr.storage.MemoryStore`
780+
By default (``store=None``) a new [zarr.storage.MemoryStore][]
781781
is created.
782782
783783
mode : {'r', 'r+', 'a', 'w', 'w-'}, optional
@@ -930,7 +930,7 @@ async def create(
930930
- For bytes or objects, the default is ``VLenBytesCodec`` and ``ZstdCodec``.
931931
932932
These defaults can be changed by modifying the value of ``array.v3_default_filters``,
933-
``array.v3_default_serializer`` and ``array.v3_default_compressors`` in :mod:`zarr.core.config`.
933+
``array.v3_default_serializer`` and ``array.v3_default_compressors`` in [`zarr.config`][zarr.config].
934934
compressor : Codec, optional
935935
Primary compressor to compress chunk data.
936936
Zarr format 2 only. Zarr format 3 arrays should use ``codecs`` instead.
@@ -941,7 +941,7 @@ async def create(
941941
- For Unicode strings, the default is ``VLenUTF8Codec``.
942942
- For bytes or objects, the default is ``VLenBytesCodec``.
943943
944-
These defaults can be changed by modifying the value of ``array.v2_default_compressor`` in :mod:`zarr.core.config`.
944+
These defaults can be changed by modifying the value of ``array.v2_default_compressor`` in [`zarr.config`][zarr.config].
945945
fill_value : object
946946
Default value to use for uninitialized portions of the array.
947947
order : {'C', 'F'}, optional
@@ -964,7 +964,7 @@ async def create(
964964
filters : sequence of Codecs, optional
965965
Sequence of filters to use to encode chunk data prior to compression.
966966
Zarr format 2 only. If no ``filters`` are provided, a default set of filters will be used.
967-
These defaults can be changed by modifying the value of ``array.v2_default_filters`` in :mod:`zarr.core.config`.
967+
These defaults can be changed by modifying the value of ``array.v2_default_filters`` in [`zarr.config`][zarr.config].
968968
cache_metadata : bool, optional
969969
If True, array configuration metadata will be cached for the
970970
lifetime of the object. If False, array metadata will be reloaded
@@ -1081,7 +1081,7 @@ async def empty(
10811081
shape : int or tuple of int
10821082
Shape of the empty array.
10831083
**kwargs
1084-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1084+
Keyword arguments passed to [zarr.api.asynchronous.create][].
10851085
10861086
Notes
10871087
-----
@@ -1104,7 +1104,7 @@ async def empty_like(
11041104
a : array-like
11051105
The array to create an empty array like.
11061106
**kwargs
1107-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1107+
Keyword arguments passed to [zarr.api.asynchronous.create][].
11081108
11091109
Returns
11101110
-------
@@ -1135,7 +1135,7 @@ async def full(
11351135
fill_value : scalar
11361136
Fill value.
11371137
**kwargs
1138-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1138+
Keyword arguments passed to [zarr.api.asynchronous.create][].
11391139
11401140
Returns
11411141
-------
@@ -1156,7 +1156,7 @@ async def full_like(
11561156
a : array-like
11571157
The array to create an empty array like.
11581158
**kwargs
1159-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1159+
Keyword arguments passed to [zarr.api.asynchronous.create][].
11601160
11611161
Returns
11621162
-------
@@ -1180,7 +1180,7 @@ async def ones(
11801180
shape : int or tuple of int
11811181
Shape of the empty array.
11821182
**kwargs
1183-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1183+
Keyword arguments passed to [zarr.api.asynchronous.create][].
11841184
11851185
Returns
11861186
-------
@@ -1200,7 +1200,7 @@ async def ones_like(
12001200
a : array-like
12011201
The array to create an empty array like.
12021202
**kwargs
1203-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1203+
Keyword arguments passed to [zarr.api.asynchronous.create][].
12041204
12051205
Returns
12061206
-------
@@ -1236,7 +1236,7 @@ async def open_array(
12361236
If using an fsspec URL to create the store, these will be passed to
12371237
the backend implementation. Ignored otherwise.
12381238
**kwargs
1239-
Any keyword arguments to pass to :func:`create`.
1239+
Any keyword arguments to pass to [`create`][zarr.api.asynchronous.create].
12401240
12411241
Returns
12421242
-------
@@ -1304,7 +1304,7 @@ async def zeros(
13041304
shape : int or tuple of int
13051305
Shape of the empty array.
13061306
**kwargs
1307-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1307+
Keyword arguments passed to [zarr.api.asynchronous.create][].
13081308
13091309
Returns
13101310
-------
@@ -1324,7 +1324,7 @@ async def zeros_like(
13241324
a : array-like
13251325
The array to create an empty array like.
13261326
**kwargs
1327-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1327+
Keyword arguments passed to [zarr.api.asynchronous.create][].
13281328
13291329
Returns
13301330
-------

src/zarr/api/synchronous.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ def open(
198198
If using an fsspec URL to create the store, these will be passed to
199199
the backend implementation. Ignored otherwise.
200200
**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][].
203203
204204
Returns
205205
-------
@@ -225,7 +225,7 @@ def open(
225225

226226
def open_consolidated(*args: Any, use_consolidated: Literal[True] = True, **kwargs: Any) -> Group:
227227
"""
228-
Alias for :func:`open_group` with ``use_consolidated=True``.
228+
Alias for [`open_group`][zarr.api.synchronous.open_group] with ``use_consolidated=True``.
229229
"""
230230
return Group(
231231
sync(async_api.open_consolidated(*args, use_consolidated=use_consolidated, **kwargs))
@@ -290,7 +290,7 @@ def save_array(
290290
If using an fsspec URL to create the store, these will be passed to
291291
the backend implementation. Ignored otherwise.
292292
**kwargs
293-
Passed through to :func:`create`, e.g., compressor.
293+
Passed through to [`create`][zarr.api.synchronous.create], e.g., compressor.
294294
"""
295295
return sync(
296296
async_api.save_array(
@@ -382,7 +382,7 @@ def array(data: npt.ArrayLike | Array, **kwargs: Any) -> Array:
382382
data : array_like
383383
The data to fill the array with.
384384
**kwargs
385-
Passed through to :func:`create`.
385+
Passed through to [`create`][zarr.api.synchronous.create].
386386
387387
Returns
388388
-------
@@ -483,12 +483,12 @@ def open_group(
483483
Store or path to directory in file system or name of zip file.
484484
485485
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][].
487487
488488
Dictionaries are used as the ``store_dict`` argument in
489-
:class:`zarr.storage.MemoryStore``.
489+
[zarr.storage.MemoryStore][].
490490
491-
By default (``store=None``) a new :class:`zarr.storage.MemoryStore`
491+
By default (``store=None``) a new [zarr.storage.MemoryStore][]
492492
is created.
493493
494494
mode : {'r', 'r+', 'a', 'w', 'w-'}, optional
@@ -580,7 +580,7 @@ def create_group(
580580
The zarr format to use when saving.
581581
If no ``zarr_format`` is provided, the default format will be used.
582582
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].
584584
storage_options : dict
585585
If using an fsspec URL to create the store, these will be passed to
586586
the backend implementation. Ignored otherwise.
@@ -781,7 +781,7 @@ def create_array(
781781
) -> Array:
782782
"""Create an array.
783783
784-
This function wraps :func:`zarr.core.array.create_array`.
784+
This function wraps [zarr.core.array.create_array][].
785785
786786
Parameters
787787
----------
@@ -811,14 +811,14 @@ def create_array(
811811
of ``ArrayArrayCodec``.
812812
If no ``filters`` are provided, a default set of filters will be used.
813813
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].
815815
Use ``None`` to omit default filters.
816816
817817
For Zarr format 2, a "filter" can be any numcodecs codec; you should ensure that the
818818
the order if your filters is consistent with the behavior of each filter.
819819
If no ``filters`` are provided, a default set of filters will be used.
820820
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].
822822
Use ``None`` to omit default filters.
823823
compressors : Iterable[Codec], optional
824824
List of compressors to apply to the array. Compressors are applied in order, and after any
@@ -828,20 +828,20 @@ def create_array(
828828
returns another bytestream. Multiple compressors my be provided for Zarr format 3.
829829
If no ``compressors`` are provided, a default set of compressors will be used.
830830
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].
832832
Use ``None`` to omit default compressors.
833833
834834
For Zarr format 2, a "compressor" can be any numcodecs codec. Only a single compressor may
835835
be provided for Zarr format 2.
836836
If no ``compressor`` is provided, a default compressor will be used.
837-
in :mod:`zarr.core.config`.
837+
in [`zarr.config`][zarr.config].
838838
Use ``None`` to omit the default compressor.
839839
serializer : dict[str, JSON] | ArrayBytesCodec, optional
840840
Array-to-bytes codec to use for encoding the array data.
841841
Zarr format 3 only. Zarr format 2 arrays use implicit array-to-bytes conversion.
842842
If no ``serializer`` is provided, a default serializer will be used.
843843
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].
845845
fill_value : Any, optional
846846
Fill value for the array.
847847
order : {"C", "F"}, optional
@@ -851,7 +851,7 @@ def create_array(
851851
is a runtime parameter for Zarr format 3 arrays. The recommended way to specify the memory
852852
order for Zarr format 3 arrays is via the ``config`` parameter, e.g. ``{'config': 'C'}``.
853853
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].
855855
zarr_format : {2, 3}, optional
856856
The zarr format to use when saving.
857857
attributes : dict, optional
@@ -1021,7 +1021,7 @@ def from_array(
10211021
- dict[str, JSON]: A dict representation of an ``ArrayBytesCodec``.
10221022
- ArrayBytesCodec: An instance of ``ArrayBytesCodec``.
10231023
- "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].
10251025
- "keep": Retain the serializer of the input array if it is a zarr Array.
10261026
10271027
fill_value : Any, optional
@@ -1145,7 +1145,7 @@ def empty(shape: tuple[int, ...], **kwargs: Any) -> Array:
11451145
shape : int or tuple of int
11461146
Shape of the empty array.
11471147
**kwargs
1148-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1148+
Keyword arguments passed to [zarr.api.asynchronous.create][].
11491149
11501150
Returns
11511151
-------
@@ -1172,7 +1172,7 @@ def empty_like(a: ArrayLike, **kwargs: Any) -> Array:
11721172
a : array-like
11731173
The array to create an empty array like.
11741174
**kwargs
1175-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1175+
Keyword arguments passed to [zarr.api.asynchronous.create][].
11761176
11771177
Returns
11781178
-------
@@ -1199,7 +1199,7 @@ def full(shape: tuple[int, ...], fill_value: Any, **kwargs: Any) -> Array:
11991199
fill_value : scalar
12001200
Fill value.
12011201
**kwargs
1202-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1202+
Keyword arguments passed to [zarr.api.asynchronous.create][].
12031203
12041204
Returns
12051205
-------
@@ -1219,7 +1219,7 @@ def full_like(a: ArrayLike, **kwargs: Any) -> Array:
12191219
a : array-like
12201220
The array to create an empty array like.
12211221
**kwargs
1222-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1222+
Keyword arguments passed to [zarr.api.asynchronous.create][].
12231223
12241224
Returns
12251225
-------
@@ -1238,7 +1238,7 @@ def ones(shape: tuple[int, ...], **kwargs: Any) -> Array:
12381238
shape : int or tuple of int
12391239
Shape of the empty array.
12401240
**kwargs
1241-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1241+
Keyword arguments passed to [zarr.api.asynchronous.create][].
12421242
12431243
Returns
12441244
-------
@@ -1257,7 +1257,7 @@ def ones_like(a: ArrayLike, **kwargs: Any) -> Array:
12571257
a : array-like
12581258
The array to create an empty array like.
12591259
**kwargs
1260-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1260+
Keyword arguments passed to [zarr.api.asynchronous.create][].
12611261
12621262
Returns
12631263
-------
@@ -1340,7 +1340,7 @@ def zeros(shape: tuple[int, ...], **kwargs: Any) -> Array:
13401340
shape : int or tuple of int
13411341
Shape of the empty array.
13421342
**kwargs
1343-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1343+
Keyword arguments passed to [zarr.api.asynchronous.create][].
13441344
13451345
Returns
13461346
-------
@@ -1359,7 +1359,7 @@ def zeros_like(a: ArrayLike, **kwargs: Any) -> Array:
13591359
a : array-like
13601360
The array to create an empty array like.
13611361
**kwargs
1362-
Keyword arguments passed to :func:`zarr.api.asynchronous.create`.
1362+
Keyword arguments passed to [zarr.api.asynchronous.create][].
13631363
13641364
Returns
13651365
-------

0 commit comments

Comments
 (0)