def __init__(self, simulations_file, config_file): self.config = yaml.load(open(config_file)) self.generator = RangeGenerator(yaml.load(open(simulations_file))) self.automator = SimulationAutomator( self.config["SimulationAutomator"]) self.persistence = PersistenceManager( self.config["Persistence"]["database"]) self.plotter = Plotter(self.persistence)
def plot2d(db_config, tag, x_param, y_param, filter_list, numRows, numCols, title): persistence = PersistenceManager(db_config) persistence.initialise_database_client() datasets = [] for filter in filter_list: dataset = create_dataset(persistence, "2d", tag, [x_param, y_param], filter) datasets.append(dataset) create_plot_matrix(datasets, "2d", numRows, numCols, title, [str(x_param.split(".")[1]), y_param.split(".")[1]])