Exemple #1
0
Fichier : cnc.py Projet : 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()
Exemple #2
0
Fichier : cnc.py Projet : F3DS/f3ds
def destroy(config=None):
    global table_names
    ccadjust.adjust('Null', 'All', table_names[0])
    spotcontrol.main(table_names[0])