Skip to content

Commit ac8c998

Browse files
committed
Little nicer
1 parent efec696 commit ac8c998

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/okbloomer/bloom_filter.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ class BloomFilter(object):
99

1010
MAX_SLICE_SIZE = 2147483647
1111

12-
n = 0 # The number of bits currently stored in the filter.
13-
m = 0 # The maximum number of bits that can be stored in the filter.
14-
1512
def __init__(self,
1613
max_false_positive_rate: float = 0.01,
1714
num_hashes: int = 4,
@@ -36,6 +33,8 @@ def __init__(self,
3633
self.layer_size = layer_size
3734
self.slice_size = slice_size
3835
self.layers: list[NDArray] = []
36+
self.n = 0 # The number of bits currently stored in the filter.
37+
self.m = 0 # The maximum number of bits that can be stored in the filter.
3938

4039
self._add_layer()
4140

0 commit comments

Comments
 (0)