We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb875e9 commit 3ddd9a3Copy full SHA for 3ddd9a3
src/blosc2/ndarray.py
@@ -4291,7 +4291,7 @@ def __setitem__(
4291
value = value[()] # convert to numpy
4292
if np.isscalar(value) or value.shape == ():
4293
value = np.full(shape, value, dtype=self.dtype)
4294
- if isinstance(value, np.ndarray) and value.dtype != self.dtype: # handles decompressed NDArray too
+ if value.dtype != self.dtype: # handles decompressed NDArray too
4295
try:
4296
value = value.astype(self.dtype)
4297
except ComplexWarning:
0 commit comments