Skip to content

Commit

Permalink
Minor optimization in grib codec
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Sep 28, 2023
1 parent d4d43be commit f967750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kerchunk/codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def decode(self, buf, out=None):
if out is not None:
return numcodecs.compat.ndarray_copy(data, out)
else:
return data.astype(dt)
return data.astype(dt, copy=False)

finally:
eccodes.codes_release(mid)
Expand Down

0 comments on commit f967750

Please sign in to comment.