From 4bf45d1711033bc419e1c48a7906f21de67ef791 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 9 Oct 2016 21:31:40 -0400 Subject: [PATCH] Fix pylint warnings in matrices.py. --- src/dunshire/matrices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dunshire/matrices.py b/src/dunshire/matrices.py index 52ba2a3..2006fd2 100644 --- a/src/dunshire/matrices.py +++ b/src/dunshire/matrices.py @@ -111,7 +111,7 @@ def inner_product(vec1, vec2): if not len(vec1) == len(vec2): raise TypeError('the lengths of vec1 and vec2 must match') - return sum([x*y for (x,y) in zip(vec1,vec2)]) + return sum([x*y for (x, y) in zip(vec1, vec2)]) def norm(matrix_or_vector): @@ -131,7 +131,7 @@ def norm(matrix_or_vector): 2.0 """ - return sqrt(inner_product(matrix_or_vector,matrix_or_vector)) + return sqrt(inner_product(matrix_or_vector, matrix_or_vector)) def vec(real_matrix): -- 2.44.2