(self, ga_engine)
Open the CSV file or creates a new file

      :param ga_engine: the GA Engine

      .. versionchanged:: 0.6
         The method now receives the *ga_engine* parameter.
Open the CSV file or creates a new file
Open the CSV file or creates a new file
def open(self, ga_engine):
      """ Open the CSV file or creates a new file

      :param ga_engine: the GA Engine

      .. versionchanged:: 0.6
         The method now receives the *ga_engine* parameter.
      """
      if self.csvmod is None:
         logging.debug("Loading the csv module...")
         self.csvmod = Util.importSpecial("csv")

      logging.debug("Opening the CSV file to dump statistics [%s]", self.filename)
      open_mode = 'w' if self.reset else 'a'
      self.fHandle = open(self.filename, open_mode)
      self.csvWriter = self.csvmod.writer(self.fHandle, delimiter=';')
def open ( self , ga_engine ) : if self . csvmod is None : logging . debug ( "Loading the csv module..." ) self . csvmod = Util . importSpecial ( "csv" ) logging . debug ( "Opening the CSV file to dump statistics [%s]" , self . filename ) open_mode = 'w' if self . reset else 'a' self . fHandle = open ( self . filename , open_mode ) self . csvWriter = self . csvmod . writer ( self . fHandle , delimiter = ';' )