Skip to content

Commit 5498633

Browse files
fix numcodecs id
1 parent 2da1046 commit 5498633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymecompress/codecs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def decode(self, buf, out=None):
1616
return bcl.huffman_decompress_buffer(buf, out)
1717

1818
def get_config(self):
19-
return {'codec_id': self.codec_id}
19+
return {'id': self.codec_id}
2020

2121
@classmethod
2222
def from_config(cls, config):
@@ -47,7 +47,7 @@ def decode(self, buf, out=None):
4747
return out.astype('uint16')
4848

4949
def get_config(self):
50-
return {'codec_id': self.codec_id,
50+
return {'id': self.codec_id,
5151
'offset': self._offset, 'scale' : self._scale}
5252

5353
@classmethod

0 commit comments

Comments
 (0)