def experiment_wrong_db(): scheduler = db.scheduler_by_name("simso.schedulers.EDF") testset = db.testset_by_name("simso.testsets.sample") # Simulates a testset from another db. testset.db = baddb e = Experiment(db, testset, scheduler) e.run() if '-upload' in RUN: e.upload()
def remote_run(): scheduler_name = "simso.schedulers.EDF" # Selects a testset testset = db.testset_by_name("simso.testsets.sample") # Create the experiment e = Experiment(db, testset, db.scheduler_by_name(scheduler_name)) e.run() if '-upload' in RUN: e.upload()
def remote_run_menu(): scheduler_name = "simso.schedulers.EDF" # Gets all the categories categories = db.categories() # Gets all the testset for the choosen category testsets = db.testsets(menu(categories)) # categories[0] # Selects a testset testset = menu(testsets) # testsets[0] # Create the experiment e = Experiment(db, testset, db.scheduler_by_name(scheduler_name)) e.run() if '-upload' in RUN: e.upload()
def local_run(): # Configure the experiment. scheduler_name = "simso.schedulers.EDF" files = ["test/test.xml", "test/configuration.xml"] # Create the experiment. config = [Configuration(f) for f in files] scheduler = db.scheduler_by_name(scheduler_name) e = Experiment(db, config, scheduler) # Run the experiment e.run() # You cannot upload the experiment with local configuration files if '-upload' in RUN: e.upload() # => ERROR # Get the metrics print(repr(e.metrics)) # Get the simulation results print(repr(e.results))