File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 99
1010NMBITS = {64 : 12 , 32 : 9 , 16 : 6 } # number of non mantissa bits for given dtype
1111
12+
1213class 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 )]
You can’t perform that action at this time.
0 commit comments