def launch(config=None): global inst_address try: name = config.launch.name except: name = '' if not name: name= raw_input('\tWhat would you like to name your experiment? ') try: inst_address=spotcontrol.main(table_names[0], name.strip()) except KeyboardInterrupt: print '\n\tKeyboardInterrupt received. Aborting launch, destroying instances.\n' destroy()
def destroy(config=None): global table_names ccadjust.adjust('Null', 'All', table_names[0]) spotcontrol.main(table_names[0])