Skip to content
Permalink
Browse files

[processing][grass] Fix broken r.statistics alg

(cherry-picked from 1fc5a0e)
  • Loading branch information
nyalldawson committed Apr 10, 2018
1 parent 2d9722d commit f2732a6425aec1b8670d3b7f91e0f26691b7c05f
@@ -575,7 +575,7 @@ def processCommand(self, parameters, context, feedback, delOutputs=False):
self.parameterAsString(parameters, paramName, context)
)
if value:
command += ' {}={}'.format(paramName, value)
command += ' {}={}'.format(paramName.replace('~', ''), value)

# Handle outputs
if not delOutputs:
@@ -32,7 +32,7 @@
def processCommand(alg, parameters, context, feedback):
# We had a new "output" parameter
out = 'output{}'.format(alg.uniqueSuffix)
p = QgsProcessingParameterString('output', None, out, False, False)
p = QgsProcessingParameterString('~output', None, out, False, False)
alg.addParameter(p)

# We need to remove all outputs
@@ -556,7 +556,7 @@ tests:
type: raster
method: '0'
results:
output:
routput:
hash: 57def04673343492d83c9572979d752fd7f2d996a2b4bb4cd0a01982
type: rasterhash

0 comments on commit f2732a6

Please sign in to comment.
You can’t perform that action at this time.