def checkParameterValuesBeforeExecuting(alg): if alg.getParameterValue('-m'): return verifyRasterNum(alg, 'input', 7) elif alg.getParameterValue('-n'): return verifyRasterNum(alg, 'input', 2) elif alg.getParameterValue('-l') or alg.getParameterValue('-a'): return verifyRasterNum(alg, 'input', 6) return None
def checkParameterValuesBeforeExecuting(alg): return verifyRasterNum(alg, 'input', 4)
def checkParameterValuesBeforeExecuting(alg): return verifyRasterNum(alg, "rasters", 5, 12)
def checkParameterValuesBeforeExecuting(alg): return verifyRasterNum(alg, 'input', 2)
def checkParameterValuesBeforeExecuting(alg): return verifyRasterNum(alg, 'rasters', 5, 5)