Skip to content

Commit ea3ed0e

Browse files
committed
use filters=auto and compressors=auto in Group.create_array
1 parent 0bf4dd0 commit ea3ed0e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/zarr/core/group.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
from zarr.abc.metadata import Metadata
1919
from zarr.abc.store import Store, set_or_delete
2020
from zarr.core._info import GroupInfo
21-
from zarr.core.array import Array, AsyncArray, _build_parents, create_array
21+
from zarr.core.array import (
22+
Array,
23+
AsyncArray,
24+
CompressionParam,
25+
FiltersParam,
26+
_build_parents,
27+
create_array,
28+
)
2229
from zarr.core.attributes import Attributes
2330
from zarr.core.buffer import default_buffer_prototype
2431
from zarr.core.common import (
@@ -1003,8 +1010,8 @@ async def create_array(
10031010
dtype: npt.DTypeLike,
10041011
chunks: ChunkCoords | Literal["auto"] = "auto",
10051012
shards: ChunkCoords | Literal["auto"] | None = None,
1006-
filters: Iterable[dict[str, JSON] | Codec] = (),
1007-
compressors: Iterable[dict[str, JSON] | Codec] = (),
1013+
filters: FiltersParam = "auto",
1014+
compressors: CompressionParam = "auto",
10081015
fill_value: Any | None = 0,
10091016
order: MemoryOrder | None = "C",
10101017
attributes: dict[str, JSON] | None = None,

0 commit comments

Comments
 (0)