Skip to content

Commit 8a93077

Browse files
committed
don't persist the checksum param if false
1 parent 6c0ea0f commit 8a93077

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

numcodecs/zstd.pyx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ class Zstd(Codec):
258258
self.level)
259259
return r
260260

261+
# Override to remove "checksum" if False
262+
def get_config(self):
263+
config = {'id': self.codec_id, 'level': self.level}
264+
if self.checksum:
265+
config['checksum'] = True
266+
return config
267+
261268
@classmethod
262269
def default_level(cls):
263270
"""Returns the default compression level of the underlying zstd library."""

0 commit comments

Comments
 (0)