@@ -58,22 +58,22 @@ def defineCharacteristics(self):
58
58
self .name = 'Raster calculator'
59
59
self .cmdname = 'Grid Calculator'
60
60
self .undecoratedGroup = "grid_calculus"
61
- self .group = SagaGroupNameDecorator .getDecoratedName (self .undecoratedGroup )
62
- grids = ParameterRaster (self .GRIDS , 'Input layers' , True )
63
- grids .hidden = True
64
- self .addParameter (grids )
65
- self .addParameter (ParameterMultipleInput (self .XGRIDS , 'Input layers' ,
61
+ self .group = SagaGroupNameDecorator .getDecoratedName (self .undecoratedGroup )
62
+ self .addParameter (ParameterRaster (self .GRIDS , 'Main input layers' ))
63
+ self .addParameter (ParameterMultipleInput (self .XGRIDS , 'Additional layers' ,
66
64
ParameterMultipleInput .TYPE_RASTER , False ))
67
65
self .addParameter (ParameterString (self .FORMULA , "Formula" ))
68
66
self .addOutput (OutputRaster (self .RESULT , "Result" ))
69
67
70
68
71
- def processAlgorithm (self , progress ):
72
- xgrids = self .getParameterValue (self .XGRIDS )
73
- layers = xgrids .split (';' )
74
- grid = layers [0 ]
75
- self .setParameterValue (self .GRIDS , grid )
76
- xgrids = ";" .join (layers [1 :])
77
- if xgrids == "" : xgrids = None
78
- self .setParameterValue (self .XGRIDS , xgrids )
79
- SagaAlgorithm .processAlgorithm (self , progress )
69
+ #===========================================================================
70
+ # def processAlgorithm(self, progress):
71
+ # xgrids = self.getParameterValue(self.XGRIDS)
72
+ # layers = xgrids.split(';')
73
+ # grid = layers[0]
74
+ # self.setParameterValue(self.GRIDS, grid)
75
+ # xgrids = ";".join(layers[1:])
76
+ # if xgrids == "": xgrids = None
77
+ # self.setParameterValue(self.XGRIDS, xgrids)
78
+ # SagaAlgorithm.processAlgorithm(self, progress)
79
+ #===========================================================================
0 commit comments