Skip to content

Commit

Permalink
Little nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Oct 13, 2024
1 parent efec696 commit ac8c998
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/okbloomer/bloom_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ class BloomFilter(object):

MAX_SLICE_SIZE = 2147483647

n = 0 # The number of bits currently stored in the filter.
m = 0 # The maximum number of bits that can be stored in the filter.

def __init__(self,
max_false_positive_rate: float = 0.01,
num_hashes: int = 4,
Expand All @@ -36,6 +33,8 @@ def __init__(self,
self.layer_size = layer_size
self.slice_size = slice_size
self.layers: list[NDArray] = []
self.n = 0 # The number of bits currently stored in the filter.
self.m = 0 # The maximum number of bits that can be stored in the filter.

self._add_layer()

Expand Down

0 comments on commit ac8c998

Please sign in to comment.