1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-04-25 00:03:06 -04:00
Juergen E. Fischer 250cc4ecb1 indentation update
2013-03-26 14:29:06 +01:00

21 lines
627 B
Python

from sextante.core.Sextante import Sextante
from sextante.modeler.ModelerAlgorithm import ModelerAlgorithm
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