Пример #1
0
Файл: cnc.py Проект: F3DS/f3ds
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()
Пример #2
0
Файл: cnc.py Проект: F3DS/f3ds
def destroy(config=None):
    global table_names
    ccadjust.adjust('Null', 'All', table_names[0])
    spotcontrol.main(table_names[0])