|
1 | 1 | from __future__ import annotations |
2 | 2 |
|
| 3 | +from collections.abc import Mapping |
3 | 4 | from dataclasses import dataclass, fields |
4 | 5 | from typing import TYPE_CHECKING, Any, Literal, Self, TypedDict, cast |
5 | 6 |
|
@@ -38,21 +39,51 @@ class ArrayConfig: |
38 | 39 |
|
39 | 40 | Parameters |
40 | 41 | ---------- |
| 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 | + ---------- |
41 | 59 | order : MemoryOrder |
42 | 60 | The memory layout of the arrays returned when reading data from the store. |
43 | 61 | write_empty_chunks : bool |
44 | 62 | If True, empty chunks will be written to the store. |
45 | 63 | read_missing_chunks : bool |
46 | 64 | If True, missing chunks will be filled with the array's fill value on read. |
47 | 65 | 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 |
48 | 70 | """ |
49 | 71 |
|
50 | 72 | order: MemoryOrder |
51 | 73 | write_empty_chunks: bool |
52 | 74 | read_missing_chunks: bool |
| 75 | + codec_classes: Mapping[str, object] |
| 76 | + data_type_classes: set[ZDType[Any, Any]] |
| 77 | + codec_pipeline_class: object |
53 | 78 |
|
54 | 79 | 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, |
56 | 87 | ) -> None: |
57 | 88 | order_parsed = parse_order(order) |
58 | 89 | write_empty_chunks_parsed = parse_bool(write_empty_chunks) |
|
0 commit comments