def launch_cmd_prompt(): prompt = MyPrompt() prompt.prompt = 'Thesis> ' prompt.cmdloop('Starting Metaverse prompt...') prompt = MyPrompt() prompt.do_demo() myexp = Experiment() myexp.run_all()
def do_run(self, line=""): """run an experiment.""" try: arch, env = [str(s) for s in line.split()] print(f"Architecture: {arch}") print(f"Environment: {env}") myexp = Experiment(arch, env) myexp.run_all() except ValueError: print("Run command usage: run <arch> <env>")