Skip to content

Commit 6523ba2

Browse files
committed
Leave out's type unchanged in GZip
1 parent 9e40050 commit 6523ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numcodecs/gzip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def decode(self, buf, out=None):
5656
buf = io.BytesIO(buf)
5757
with _gzip.GzipFile(fileobj=buf, mode='rb') as decompressor:
5858
if out is not None:
59-
out = ensure_contiguous_ndarray(out)
60-
decompressor.readinto(out)
59+
out_view = ensure_contiguous_ndarray(out)
60+
decompressor.readinto(out_view)
6161
if decompressor.read(1) != b'':
6262
raise ValueError("Unable to fit data into `out`")
6363
else:

0 commit comments

Comments
 (0)