def testAlg(algname, *args): #test simple execution alg = Sextante.runAlgorithm(algname, None, *args) assert alg is not None out = alg.getOutputValuesAsDictionary() return out
def testAlg(algname, *args): #test simple execution alg = Sextante.runAlgorithm(algname, None, *args) assert alg is not None out = alg.getOutputValuesAsDictionary() return out #test execution in a model #=========================================================================== # model = ModelerAlgorithm() # model.addAlgorithm(alg, parametersMap, valuesMap, outputsMap, dependencies) #=========================================================================== #test
def runandload(name, *args): return Sextante.runAlgorithm(name, SextantePostprocessing.handleAlgorithmResults, *args)
def runalg(algOrName, *args): alg = Sextante.runAlgorithm(algOrName, None, *args) if alg is not None: return alg.getOutputValuesAsDictionary()