Skip to content

Commit

Permalink
fix flake8 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bencrts committed May 8, 2024
1 parent 6fc3aad commit ba19165
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions estimator/reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def _short_vectors_sieve(self, beta, d, N=None, B=None, preprocess=True, sieve_d
self.delta(sieve_dim) ** (sieve_dim - 1) * self.delta(beta) ** (1 - sieve_dim)
)

#arbitrary choice
# arbitrary choice
if c > 2**1000:
c = oo
return (rho, oo, oo, sieve_dim)
Expand Down Expand Up @@ -888,7 +888,7 @@ def short_vectors(self, beta, d, N=None, preprocess=True, B=None, C=5.46, sieve_
rho = sqrt(4 / 3.0) * RR(
self.delta(sieve_dim) ** (sieve_dim - 1) * self.delta(beta) ** (1 - sieve_dim)
)

if N == 1:
if preprocess:
return 1.0, self(beta, d, B=B), 1, beta
Expand All @@ -902,7 +902,7 @@ def short_vectors(self, beta, d, N=None, preprocess=True, B=None, C=5.46, sieve_
c = c0 / floor(c1)
sieve_cost = C * 2 ** RR((self.NN_AGPS[self.nn]["a"] * sieve_dim + self.NN_AGPS[self.nn]["b"]))

#arbitrary choice
# arbitrary choice
if c > 2**1000:
c = oo
return(rho, oo, oo, sieve_dim)
Expand Down

0 comments on commit ba19165

Please sign in to comment.