You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: keep fill value and attributes in from_array (#4288)
`from_array` discards both `fill_value` and `attributes`.
An explicit `fill_value=None` now means the dtype's default scalar (v3) or a
null fill value (v2), consistent with `create_array`, and an empty
`attributes` dict opts out of copying the source's attributes.
Fixes#4287
`zarr.from_array` now defaults to the fill value and the attributes of the source array. Previously both were silently discarded: the array was created with the data type's default scalar and no attributes.
2
+
3
+
An explicit `fill_value=None` now selects the data type's default scalar (Zarr format 3) or a null fill value (Zarr format 2), consistently with `create_array`, and an empty `attributes` dict creates the array with no attributes.
0 commit comments