Skip to content

Commit

Permalink
fix flake8 in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bencrts committed May 8, 2024
1 parent a08cb22 commit 969828f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 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,10 +902,15 @@ 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)
# set c = oo
return (
rho,
oo,
oo,
sieve_dim,
)

return (
rho,
Expand Down

0 comments on commit 969828f

Please sign in to comment.