Revision dfc44250 mobiExp.py

View differences:

mobiExp.py
13 13
    sectionExp = ''
14 14
    outPath = ''
15 15
    cdir = ''
16
    num_workers = 1
16 17
    gui = False
17 18
    options, remainder = getopt.getopt(
18
        sys.argv[1:], '', ['sf=', 'en=', 'out=', 'gui'])
19
        sys.argv[1:], '', ['sf=', 'en=', 'out=', 'thr=', 'gui'])
19 20
    mand = set(['--sf', '--en', '--out'])
20 21
    opts = [x[0] for x in options]
21 22
    # print 'OPTIONS   :', opts
......
28 29
            settingsFile = arg
29 30
        if opt in ('--en'):
30 31
            sectionExp = arg
32
        if opt in ('--thr'):
33
            num_workers = int(arg)
31 34
        if opt in ('--out'):
32 35
            outPath = arg
33 36
            outPath.rstrip("/")
......
43 46
        if opt in ('--gui'):
44 47
            gui = True
45 48

  
46
    sim = Simulator(settingsFile, sectionExp, cdir, gui)
49
    sim = Simulator(settingsFile, sectionExp, cdir, num_workers=num_workers, gui=gui)
47 50
    print "Simulation Parameters\n"
48 51
    pprint(sim.params)
49 52
    #code.interact(local=dict(globals(), **locals()))

Also available in: Unified diff