Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing][grass] Fix broken r.statistics alg
  • Loading branch information
nyalldawson committed Apr 9, 2018
1 parent 767d6df commit 81a5f02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_statistics.py
Expand Up @@ -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
Expand Down
Expand Up @@ -556,7 +556,7 @@ tests:
type: raster
method: '0'
results:
output:
routput:
hash: 57def04673343492d83c9572979d752fd7f2d996a2b4bb4cd0a01982
type: rasterhash

Expand Down

0 comments on commit 81a5f02

Please sign in to comment.