Skip to content

Commit 11c0cb8

Browse files
committed
Fix PEP 8 issues
1 parent 2d17320 commit 11c0cb8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

numcodecs/bitinfo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
NMBITS = {64: 12, 32: 9, 16: 6} # number of non mantissa bits for given dtype
1111

12+
1213
class BitInfo(BitRound):
1314
"""Floating-point bit information codec
1415
@@ -233,18 +234,18 @@ def get_keepbits(info_per_bit, inflevel=0.99):
233234
----------
234235
info_per_bit : array
235236
Information content of each bit from `get_bitinformation`.
236-
237+
237238
inflevel : float
238239
Level of information that shall be preserved.
239240
240241
Returns
241242
-------
242243
keepbits : int
243244
Number of mantissa bits to keep
244-
245+
245246
"""
246247
if (inflevel < 0) or (inflevel > 1.0):
247-
raise ValueError("Please provide `inflevel` from interval [0.,1.]")
248+
raise ValueError("Please provide `inflevel` from interval [0.,1.]")
248249

249250
cdf = _cdf_from_info_per_bit(info_per_bit)
250251
bitdim_non_mantissa_bits = NMBITS[len(info_per_bit)]

0 commit comments

Comments
 (0)