Skip to content
Permalink
Browse files

remove unused method

  • Loading branch information
luipir committed Aug 28, 2018
1 parent 6a2934c commit d3144b97affc3ff9bb0ae024e4891fc5e2b49611
Showing with 0 additions and 18 deletions.
  1. +0 −18 python/plugins/processing/algs/qgis/RasterCalculator.py
@@ -79,24 +79,6 @@ def type(self):
def clone(self):
return ParameterRasterCalculatorExpression(self.name(), self.description(), self.multiLine())

# TODO: remove this unused method?
def evaluateForModeler(self, value, model):
for i in list(model.inputs.values()):
param = i.param
if isinstance(param, QgsProcessingParameterRasterLayer):
new = "{}@".format(os.path.basename(param.value))
old = "{}@".format(param.name())
value = value.replace(old, new)

for alg in list(model.algs.values()):
for out in alg.algorithm.outputs:
if isinstance(out, QgsProcessingOutputRasterLayer):
if out.value:
new = "{}@".format(os.path.basename(out.value))
old = "{}:{}@".format(alg.modeler_name, out.name)
value = value.replace(old, new)
return value

self.addParameter(ParameterRasterCalculatorExpression(self.EXPRESSION, self.tr('Expression'),
multiLine=True))
self.addParameter(QgsProcessingParameterMultipleLayers(self.LAYERS,

0 comments on commit d3144b9

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