def run(configs=None): if configs == None or len(configs) == 0: configs = reader.read_settings(SETTINGS_FILE_NAME) output_file = writer.get_service_file(SERVICE_FILE_NAME) threads_manager.exec(configs, output_file) output_file.close() groups = Group.get_groups(reader.read_outcomes(SERVICE_FILE_NAME)) writer.write_groups(GROUPS_FILE_NAME, groups)
def run(self, settings=None): if settings == None or len(settings) == 0: settings = reader.read_settings(SETTINGS_FILENAME) output_file = writer.get_outcome_file(OUTCOMES_FILENAME) threads_manager.exec(settings, output_file) output_file.close() self.plots.append( Plot(len(self.plots), self.get_groups(reader.read_outcomes(OUTCOMES_FILENAME)))) print("Runned")
from persistence import reader settings = reader.read_settings('../settings.csv') outcomes = reader.read_outcomes('../outcomes.csv') groups = reader.read_groups('../groups.csv', '../outcomes.csv') plots = reader.read_plots('../plots.csv', '../groups.csv', '../outcomes.csv') print('settings') for setting in settings: print(setting.to_string()) print('\n\n outcomes') for outcome in outcomes: print(outcome.to_string()) print('\n\n groups') for group in groups: print(group.to_string()) print('\n\n plots') for plot in plots: print(plot.to_string())
def save(configs=None): #Non ci sono contolli if configs == None or len(configs) == 0: configs = reader.read_settings(SETTINGS_FILE_NAME) writer.write_settings(SETTINGS_FILE_NAME, configs)
def read_settings(self): return reader.read_settings(SETTINGS_FILENAME)