Skip to content

Commit 1fc5a0e

Browse files
committedApr 9, 2018
[processing][grass] Fix broken r.statistics alg
1 parent 3455c13 commit 1fc5a0e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def processCommand(self, parameters, context, feedback, delOutputs=False):
575575
self.parameterAsString(parameters, paramName, context)
576576
)
577577
if value:
578-
command += ' {}={}'.format(paramName, value)
578+
command += ' {}={}'.format(paramName.replace('~', ''), value)
579579

580580
# Handle outputs
581581
if not delOutputs:

‎python/plugins/processing/algs/grass7/ext/r_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
def processCommand(alg, parameters, context, feedback):
3333
# We had a new "output" parameter
3434
out = 'output{}'.format(alg.uniqueSuffix)
35-
p = QgsProcessingParameterString('output', None, out, False, False)
35+
p = QgsProcessingParameterString('~output', None, out, False, False)
3636
alg.addParameter(p)
3737

3838
# We need to remove all outputs

‎python/plugins/processing/tests/testdata/grass7_algorithms_raster_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ tests:
556556
type: raster
557557
method: '0'
558558
results:
559-
output:
559+
routput:
560560
hash: 57def04673343492d83c9572979d752fd7f2d996a2b4bb4cd0a01982
561561
type: rasterhash
562562

0 commit comments

Comments
 (0)
Please sign in to comment.