summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-07-01 16:38:42 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2019-07-01 16:38:42 +0100
commit005c724ff52f34bda1fc7712d1f8ee7257f501de (patch)
tree14240c3824b7260daa6e70a241bcf83649fd99c1 /Wrappers
parent7cec8dbe76fb8160b4c936e250fe14d58977901e (diff)
downloadframework-005c724ff52f34bda1fc7712d1f8ee7257f501de.tar.gz
framework-005c724ff52f34bda1fc7712d1f8ee7257f501de.tar.bz2
framework-005c724ff52f34bda1fc7712d1f8ee7257f501de.tar.xz
framework-005c724ff52f34bda1fc7712d1f8ee7257f501de.zip
removed or from if
Diffstat (limited to 'Wrappers')
-rwxr-xr-xWrappers/Python/ccpi/optimisation/algorithms/Algorithm.py3
1 files changed, 1 insertions, 2 deletions
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: