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 62f4987 commit 23d1800Copy full SHA for 23d1800
numcodecs/bitinfo.py
@@ -56,7 +56,7 @@ def encode(self, buf):
56
raise TypeError("Only float arrays (16-64bit) can be bit-rounded")
57
58
if self.axes is None:
59
- axes = range(a.ndim)
+ self.axes = range(a.ndim)
60
61
itemsize = a.dtype.itemsize
62
astype = f"u{itemsize}"
@@ -66,7 +66,7 @@ def encode(self, buf):
66
a = a.astype(astype)
67
keepbits = []
68
69
- for ax in axes:
+ for ax in self.axes:
70
info_per_bit = bitinformation(a, axis=ax)
71
keepbits.append(get_keepbits(info_per_bit, self.inflevel))
72
0 commit comments