From ba1916585b0299eba8dec749f5392ee6e6e59a00 Mon Sep 17 00:00:00 2001 From: Ben <16917183+bencrts@users.noreply.github.com> Date: Wed, 8 May 2024 11:47:15 +0100 Subject: [PATCH] fix flake8 stuff --- estimator/reduction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/estimator/reduction.py b/estimator/reduction.py index 1800cba..0a4c1f9 100644 --- a/estimator/reduction.py +++ b/estimator/reduction.py @@ -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) @@ -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 @@ -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)