From: Michael Orlitzky Date: Mon, 10 Oct 2016 01:31:40 +0000 (-0400) Subject: Fix pylint warnings in matrices.py. X-Git-Tag: 0.1.0~185 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=4bf45d1711033bc419e1c48a7906f21de67ef791;p=dunshire.git Fix pylint warnings in matrices.py. --- 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):