Skip to content

Commit

Permalink
Changed representation for statistics in the logger (%g instead of %f).
Browse files Browse the repository at this point in the history
--HG--
branch : dev
  • Loading branch information
fmder committed Oct 12, 2012
1 parent 0b742bf commit ee4ea04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deap/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class EvolutionLogger(object):
def __init__(self, columns=("gen", "evals"), precision=4):
self.columns = tuple(columns)
self.line = " ".join("{%s:<8}" % name for name in self.columns)
self.precision = "{0:.%if}" % precision
self.precision = "{0:.%ig}" % precision

def logHeader(self):
"""Logs the column titles specified during initialization.
Expand Down

0 comments on commit ee4ea04

Please sign in to comment.