Skip to content

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaymjoshi committed May 14, 2023
1 parent d90aff0 commit 339d443
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions relistats/binom_fin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
Success-Failure Experiments," arXiv:2303.03167 [stat.ME], March 2023.
https://doi.org/10.48550/arXiv.2303.03167
"""
from math import floor

from relistats import logger
from relistats.binomial import confidence

Expand Down Expand Up @@ -93,7 +91,7 @@ def reli_fin(n: int, f: int, c: float, m: int) -> tuple:
c2, r2 = conf_fin(n, f, m, d)
if c2 >= c:
return (r2, c2)
# return (0, c)... never reached!
return (0, c) # never reached!


def assur_fin(n: int, f: int, m: int, tol=0.001) -> tuple:
Expand Down Expand Up @@ -127,7 +125,6 @@ def assur_fin(n: int, f: int, m: int, tol=0.001) -> tuple:
max_assurance = 0
max_reli = 0
max_conf = 0
total_samples = n + m
for d in range(m + 1):
c2, r2 = conf_fin(n, f, m, d)
assurance = min([r2, c2])
Expand Down

0 comments on commit 339d443

Please sign in to comment.