Skip to content

Commit

Permalink
from_array: copy zarr format on default
Browse files Browse the repository at this point in the history
  • Loading branch information
brokkoli71 committed Feb 1, 2025
1 parent 4e26cca commit c5c8875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zarr/api/synchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def from_array(
serializer: SerializerLike | Literal["keep"] = "keep",
fill_value: Any | None = None,
order: MemoryOrder | None = None,
zarr_format: ZarrFormat | None = 3,
zarr_format: ZarrFormat | None = None,
attributes: dict[str, JSON] | None = None,
chunk_key_encoding: ChunkKeyEncoding | ChunkKeyEncodingLike | None = None,
dimension_names: Iterable[str] | None = None,
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/core/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3807,7 +3807,7 @@ async def from_array(
serializer: SerializerLike | Literal["keep"] = "keep",
fill_value: Any | None = None,
order: MemoryOrder | None = None,
zarr_format: ZarrFormat | None = 3,
zarr_format: ZarrFormat | None = None,
attributes: dict[str, JSON] | None = None,
chunk_key_encoding: ChunkKeyEncoding | ChunkKeyEncodingLike | None = None,
dimension_names: Iterable[str] | None = None,
Expand Down

0 comments on commit c5c8875

Please sign in to comment.