(self, ga_engine)
Inserts the stats into the CSV file

      :param ga_engine: the GA Engine

      .. versionchanged:: 0.6
         The method now receives the *ga_engine* parameter.
Inserts the stats into the CSV file
Inserts the stats into the CSV file
def insert(self, ga_engine):
      """ Inserts the stats into the CSV file

      :param ga_engine: the GA Engine

      .. versionchanged:: 0.6
         The method now receives the *ga_engine* parameter.
      """
      stats = ga_engine.getStatistics()
      generation = ga_engine.getCurrentGeneration()
      line = [self.getIdentify(), generation]
      line.extend(stats.asTuple())
      self.csvWriter.writerow(line)
def insert ( self , ga_engine ) : stats = ga_engine . getStatistics ( ) generation = ga_engine . getCurrentGeneration ( ) line = [ self . getIdentify ( ) , generation ] line . extend ( stats . asTuple ( ) ) self . csvWriter . writerow ( line )