Skip to content
Permalink
Browse files

Fix parsing of saga params

  • Loading branch information
nyalldawson authored and alexbruy committed Aug 14, 2017
1 parent b928cc6 commit 85b8502444df97edac9be5909d8dd4c587f168f3
Showing with 6 additions and 4 deletions.
  1. +6 −4 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -78,9 +78,11 @@ def createInstance(self):
return SagaAlgorithm(self.description_file)

def initAlgorithm(self, config=None):
#for p in self.params:
# self.addParameter(p)
pass
for p in self.params:
try:
self.addParameter(p)
except:
pass # todo - remove

def name(self):
return self._name
@@ -122,7 +124,7 @@ def defineCharacteristicsFromFile(self):
while line != '':
if line.startswith('Hardcoded'):
self.hardcoded_strings.append(line[len('Hardcoded|'):])
elif line.startswith('Parameter'):
elif line.startswith('QgsProcessingParameter') or line.startswith('Parameter'):
self.params.append(getParameterFromString(line))
elif line.startswith('AllowUnmatching'):
self.allow_nonmatching_grid_extents = True

0 comments on commit 85b8502

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