Skip to content

Commit

Permalink
correct code double backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
brokkoli71 committed Dec 18, 2024
1 parent 48c7448 commit 083c4cb
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
12 changes: 6 additions & 6 deletions src/zarr/api/asynchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,17 +836,17 @@ async def create(
this collection specify the transformation from array values to stored bytes.
V3 only. V2 arrays should use ``filters`` and ``compressor`` instead.
If no codecs are provided, default codecs will be used:
- For numeric arrays, the default is `BytesCodec` and `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``BytesCodec`` and ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v3_default_codecs` variable in the Zarr config.
compressor : Codec, optional
Primary compressor to compress chunk data.
V2 only. V3 arrays should use ``codecs`` instead.
If neither ``compressor`` nor ``filters`` are provided, a default compressor will be used:
- For numeric arrays, the default is `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v2_default_compressor` variable in the Zarr config.
fill_value : object
Default value to use for uninitialized portions of the array.
Expand Down
28 changes: 14 additions & 14 deletions src/zarr/core/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,16 +421,16 @@ async def create(
this collection specify the transformation from array values to stored bytes.
V3 only. V2 arrays should use ``filters`` and ``compressor`` instead.
If no codecs are provided, default codecs will be used:
- For numeric arrays, the default is `BytesCodec` and `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``BytesCodec`` and ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v3_default_codecs` variable in the Zarr config.
dimension_names : Iterable[str], optional
The names of the dimensions (default is None).
V3 only. V2 arrays should not use this parameter.
chunks : ShapeLike, optional
The shape of the array's chunks.
V2 only. V3 arrays should use `chunk_shape` instead.
V2 only. V3 arrays should use :func:`chunk_shape` instead.
If not specified, default are guessed based on the shape and dtype.
dimension_separator : Literal[".", "/"], optional
The dimension separator (default is ".").
Expand All @@ -446,9 +446,9 @@ async def create(
The compressor used to compress the data (default is None).
V2 only. V3 arrays should use ``codecs`` instead.
If neither ``compressor`` nor ``filters`` are provided, a default compressor will be used:
- For numeric arrays, the default is `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v2_default_compressor` variable in the Zarr config.
overwrite : bool, optional
Whether to raise an error if the store already exists (default is False).
Expand Down Expand Up @@ -1513,16 +1513,16 @@ def create(
this collection specify the transformation from array values to stored bytes.
V3 only. V2 arrays should use ``filters`` and ``compressor`` instead.
If no codecs are provided, default codecs will be used:
- For numeric arrays, the default is `BytesCodec` and `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``BytesCodec`` and ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v3_default_codecs` variable in the Zarr config.
dimension_names : Iterable[str], optional
The names of the dimensions (default is None).
V3 only. V2 arrays should not use this parameter.
chunks : ChunkCoords, optional
The shape of the array's chunks.
V2 only. V3 arrays should use `chunk_shape` instead.
V2 only. V3 arrays should use :func:`chunk_shape` instead.
If not specified, default are guessed based on the shape and dtype.
dimension_separator : Literal[".", "/"], optional
The dimension separator (default is ".").
Expand All @@ -1538,9 +1538,9 @@ def create(
Primary compressor to compress chunk data.
V2 only. V3 arrays should use ``codecs`` instead.
If neither ``compressor`` nor ``filters`` are provided, a default compressor will be used:
- For numeric arrays, the default is `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v2_default_compressor` variable in the Zarr config.
overwrite : bool, optional
Whether to raise an error if the store already exists (default is False).
Expand Down
42 changes: 21 additions & 21 deletions src/zarr/core/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,15 +1046,15 @@ async def create_array(
this collection specify the transformation from array values to stored bytes.
V3 only. V2 arrays should use ``filters`` and ``compressor`` instead.
If no codecs are provided, default codecs will be used:
- For numeric arrays, the default is `BytesCodec` and `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``BytesCodec`` and ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v3_default_codecs` variable in the Zarr config.
dimension_names : Iterable[str] | None = None
The names of the dimensions of the array. V3 only.
chunks : ChunkCoords | None = None
The shape of the chunks of the array.
V2 only. V3 arrays should use `chunk_shape` instead.
V2 only. V3 arrays should use :func:`chunk_shape` instead.
If not specified, default are guessed based on the shape and dtype.
dimension_separator : Literal[".", "/"] | None = None
The delimiter used for the chunk keys. (default: ".")
Expand All @@ -1070,9 +1070,9 @@ async def create_array(
The compressor used to compress the data (default is None).
V2 only. V3 arrays should use ``codecs`` instead.
If neither ``compressor`` nor ``filters`` are provided, a default compressor will be used:
- For numeric arrays, the default is `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v2_default_compressor` variable in the Zarr config.
overwrite : bool = False
If True, a pre-existing array or group at the path of this array will
Expand Down Expand Up @@ -2267,15 +2267,15 @@ def create_array(
this collection specify the transformation from array values to stored bytes.
V3 only. V2 arrays should use ``filters`` and ``compressor`` instead.
If no codecs are provided, default codecs will be used:
- For numeric arrays, the default is `BytesCodec` and `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``BytesCodec`` and ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v3_default_codecs` variable in the Zarr config.
dimension_names : Iterable[str] | None = None
The names of the dimensions of the array. V3 only.
chunks : ChunkCoords | None = None
The shape of the chunks of the array.
V2 only. V3 arrays should use `chunk_shape` instead.
V2 only. V3 arrays should use :func:`chunk_shape` instead.
If not specified, default are guessed based on the shape and dtype.
dimension_separator : Literal[".", "/"] | None = None
The delimiter used for the chunk keys. (default: ".")
Expand All @@ -2291,9 +2291,9 @@ def create_array(
The compressor used to compress the data (default is None).
V2 only. V3 arrays should use ``codecs`` instead.
If neither ``compressor`` nor ``filters`` are provided, a default compressor will be used:
- For numeric arrays, the default is `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v2_default_compressor` variable in the Zarr config.
overwrite : bool = False
If True, a pre-existing array or group at the path of this array will
Expand Down Expand Up @@ -2631,15 +2631,15 @@ def array(
this collection specify the transformation from array values to stored bytes.
V3 only. V2 arrays should use ``filters`` and ``compressor`` instead.
If no codecs are provided, default codecs will be used:
- For numeric arrays, the default is `BytesCodec` and `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``BytesCodec`` and ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v3_default_codecs` variable in the Zarr config.
dimension_names : Iterable[str] | None = None
The names of the dimensions of the array. V3 only.
chunks : ChunkCoords | None = None
The shape of the chunks of the array.
V2 only. V3 arrays should use `chunk_shape` instead.
V2 only. V3 arrays should use :func:`chunk_shape` instead.
If not specified, default are guessed based on the shape and dtype.
dimension_separator : Literal[".", "/"] | None = None
The delimiter used for the chunk keys. (default: ".")
Expand All @@ -2655,9 +2655,9 @@ def array(
The compressor used to compress the data (default is None).
V2 only. V3 arrays should use ``codecs`` instead.
If neither ``compressor`` nor ``filters`` are provided, a default compressor will be used:
- For numeric arrays, the default is `ZstdCodec`.
- For Unicode strings, the default is `VLenUTF8Codec`.
- For bytes or objects, the default is `VLenBytesCodec`.
- For numeric arrays, the default is ``ZstdCodec``.
- For Unicode strings, the default is ``VLenUTF8Codec``.
- For bytes or objects, the default is ``VLenBytesCodec``.
These defaults can be changed using the `array.v2_default_compressor` variable in the Zarr config.
overwrite : bool = False
If True, a pre-existing array or group at the path of this array will
Expand Down

0 comments on commit 083c4cb

Please sign in to comment.