Example #1
0
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)
Example #2
0
 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")
Example #3
0
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())
Example #4
0
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)
Example #5
0
 def read_settings(self):
     return reader.read_settings(SETTINGS_FILENAME)