Skip to content

Commit 5e8eeaa

Browse files
committed
wip
1 parent c966cfa commit 5e8eeaa

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

src/zarr/core/array_spec.py

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
from collections.abc import Mapping
34
from dataclasses import dataclass, fields
45
from typing import TYPE_CHECKING, Any, Literal, Self, TypedDict, cast
56

@@ -38,21 +39,51 @@ class ArrayConfig:
3839
3940
Parameters
4041
----------
42+
order : MemoryOrder
43+
The memory layout of the arrays returned when reading data from the store.
44+
write_empty_chunks : bool
45+
If True, empty chunks will be written to the store.
46+
read_missing_chunks : bool, default is True
47+
If True, missing chunks will be filled with the array's fill value on read.
48+
If False, reading missing chunks will raise a ``ChunkNotFoundError``.
49+
codec_classes : Mapping[str, object] | None, default is None
50+
A codec name : codec class mapping that defines the codec classes available
51+
for this array. Defaults to `None`, in which case a default collection of codecs
52+
is retrieved from the global config object.
53+
data_type_classes : set[ZDType] | None, default is None.
54+
A set of data type classes to use
55+
A data type identi
56+
57+
Attributes
58+
----------
4159
order : MemoryOrder
4260
The memory layout of the arrays returned when reading data from the store.
4361
write_empty_chunks : bool
4462
If True, empty chunks will be written to the store.
4563
read_missing_chunks : bool
4664
If True, missing chunks will be filled with the array's fill value on read.
4765
If False, reading missing chunks will raise a ``ChunkNotFoundError``.
66+
codec_classes : Mapping[str, object]
67+
A codec name : codec class mapping that defines the codec classes available
68+
for this array.
69+
data_type_clas
4870
"""
4971

5072
order: MemoryOrder
5173
write_empty_chunks: bool
5274
read_missing_chunks: bool
75+
codec_classes: Mapping[str, object]
76+
data_type_classes: set[ZDType[Any, Any]]
77+
codec_pipeline_class: object
5378

5479
def __init__(
55-
self, order: MemoryOrder, write_empty_chunks: bool, *, read_missing_chunks: bool = True
80+
self,
81+
order: MemoryOrder,
82+
write_empty_chunks: bool,
83+
*,
84+
read_missing_chunks: bool = True,
85+
codec_class_map: Mapping[str, object] | None = None,
86+
codec_pipeline_class: object | None = None,
5687
) -> None:
5788
order_parsed = parse_order(order)
5889
write_empty_chunks_parsed = parse_bool(write_empty_chunks)

0 commit comments

Comments
 (0)