Skip to content

Commit 3f4b97d

Browse files
committed
use the result of the broadcasted array to check the contents (#3629)
1 parent dab27be commit 3f4b97d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/buffer/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def all_equal(self, other: Any, equal_nan: bool = True) -> bool:
542542
# every single time we have to write data?
543543
_data, other = np.broadcast_arrays(self._data, other)
544544
return np.array_equal(
545-
self._data,
545+
_data,
546546
other,
547547
equal_nan=equal_nan
548548
if self._data.dtype.kind not in ("U", "S", "T", "O", "V")

0 commit comments

Comments
 (0)