Skip to content

Commit

Permalink
ensure false_positive_rate is float
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Apr 4, 2021
1 parent 36ecfb5 commit 74ad507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probables/blooms/basebloom.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
elif is_hex_string(hex_string):
self._load_hex(hex_string, hash_function)
elif est_elements is not None and false_positive_rate is not None:
vals = self._set_optimized_params(est_elements, false_positive_rate, hash_function)
vals = self._set_optimized_params(est_elements, float(false_positive_rate), hash_function)
self.__hash_func = vals[0]
self.__fpr = vals[1]
self.__number_hashes = vals[2]
Expand Down

0 comments on commit 74ad507

Please sign in to comment.