]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Fix some pylint warnings.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 9 Nov 2016 14:31:44 +0000 (09:31 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 13 Nov 2016 20:19:22 +0000 (15:19 -0500)
dunshire/games.py
test/symmetric_linear_game_test.py

index 130176b63bf9a276541609ad70b25f2c0b7a7d79..b27be5291a6a712df5b2d2b52a70e5b45dbb311c 100644 (file)
@@ -997,7 +997,7 @@ class SymmetricLinearGame:
         # makes the most sense to just use that, even if it means we
         # can't test the fact that p1_value/p2_value are close to the
         # payoff.
-        payoff = self.payoff(p1_optimal,p2_optimal)
+        payoff = self.payoff(p1_optimal, p2_optimal)
         return Solution(payoff, p1_optimal, p2_optimal)
 
 
index f5b48f4ac1f3e19bcec92d9357a511ebfd794df5..04b85455ac94cb7d76719a7ab8b6a3629a8bc6ef 100644 (file)
@@ -4,14 +4,13 @@ Unit tests for the :class:`SymmetricLinearGame` class.
 
 from unittest import TestCase
 
-from dunshire.cones import NonnegativeOrthant
 from dunshire.games import SymmetricLinearGame
-from dunshire.matrices import eigenvalues_re, inner_product, norm
+from dunshire.matrices import eigenvalues_re, inner_product
 from dunshire import options
-from .randomgen import (RANDOM_MAX, random_icecream_game,
-                        random_ll_icecream_game, random_ll_orthant_game,
-                        random_nn_scaling, random_orthant_game,
-                        random_positive_orthant_game, random_translation)
+from .randomgen import (random_icecream_game, random_ll_icecream_game,
+                        random_ll_orthant_game, random_nn_scaling,
+                        random_orthant_game, random_positive_orthant_game,
+                        random_translation)
 
 
 # Tell pylint to shut up about the large number of methods.