示例#1
0
def load_config(test_name):
    #print test_name
    configFile = os.path.join(BIG_TESTS_CFG, test_name + '.ini')
    cs = Compute(configFile, None)
    _out_dir, out_file = os.path.split(cs.options.output_file)
    cs.options.output_file = os.path.join(BIG_TESTS_OUT, out_file)
    return cs
示例#2
0
#!/usr/bin/python
##
## Circuitscape (C) 2013, Brad McRae, Viral B. Shah. and Tanmay Mohapatra

import sys
from circuitscape.compute import Compute

if len(sys.argv) == 1:
    print 'Error: Circuitscape configuration (.ini) file required.'
else:
    configFile = sys.argv[1]
    cs = Compute(configFile, 'Screen')
    resistances = cs.compute()
    print resistances