From f1719e93755bd20382763eafdea764ac5f94fd0d Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 29 Mar 2023 03:55:35 +0200 Subject: [PATCH] python(denoising): Fixed warning Signed-off-by: prescientmoon --- python/denoising/modules/tridiagonal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/denoising/modules/tridiagonal.py b/python/denoising/modules/tridiagonal.py index aaa39b4..5e1119e 100644 --- a/python/denoising/modules/tridiagonal.py +++ b/python/denoising/modules/tridiagonal.py @@ -170,7 +170,7 @@ def largest_eigenvalue(a, c, e, initial_x, kmax): assert_valid_tridiagonal(a, c, e) x = initial_x - for i in range(kmax): + for _ in range(kmax): q = multiply_vector(a, c, e, x) assert not np.allclose(q, 0) x = q/np.linalg.norm(q)