Skip to content

Commit 8b6df1f

Browse files
committed
consistent behaviour for empty object arrays
1 parent fc03507 commit 8b6df1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zarr/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,8 @@ def _chunk_setitem_nosync(self, chunk_coords, chunk_selection, value, fields=Non
16761676
if self._fill_value is not None:
16771677
chunk = np.empty(self._chunks, dtype=self._dtype, order=self._order)
16781678
chunk.fill(self._fill_value)
1679+
elif self._dtype == object:
1680+
chunk = np.empty(self._chunks, dtype=self._dtype, order=self._order)
16791681
else:
16801682
# N.B., use zeros here so any region beyond the array has consistent
16811683
# and compressible data

0 commit comments

Comments
 (0)