(self)
Creates the save directory to store the runs
Creates the save directory to store the runs
Creates the save directory to store the runs
def create_save_dir(self):
        """
        Creates the save directory to store the runs
        """
        try:
            os.makedirs(self.save_dir)
        except OSError as exception:
            if exception.errno != errno.EEXIST:
                raise
        self.output_file = open(os.path.join(self.save_dir, 'results.csv'), 'w')
        self.output_file_json = open(os.path.join(self.save_dir, 'results.json'), 'w')
        self.csv_writer = None
        self.json_writer = None
def create_save_dir ( self ) : try : os . makedirs ( self . save_dir ) except OSError as exception : if exception . errno != errno . EEXIST : raise self . output_file = open ( os . path . join ( self . save_dir , 'results.csv' ) , 'w' ) self . output_file_json = open ( os . path . join ( self . save_dir , 'results.json' ) , 'w' ) self . csv_writer = None self . json_writer = None