From 005c724ff52f34bda1fc7712d1f8ee7257f501de Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Mon, 1 Jul 2019 16:38:42 +0100 Subject: removed or from if --- Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Wrappers/Python') diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py b/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py index 7637680..f9f65b2 100755 --- a/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py +++ b/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py @@ -161,8 +161,7 @@ class Algorithm(object): if verbose: print(self.verbose_output()) for _ in self: - if (self.iteration) % self.update_objective_interval == 0 or \ - self.iteration == 0: + if (self.iteration) % self.update_objective_interval == 0: if verbose: print (self.verbose_output()) if callback is not None: -- cgit v1.2.3