Skip to content

Commit c63df20

Browse files
author
Médéric RIBREUX
committedNov 4, 2017
Fix cz function
1 parent 74826dc commit c63df20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def getDefaultCellSize(self):
267267
layers = [l for l in self.inputLayers if isinstance(l, QgsRasterLayer)]
268268

269269
# Use this function to calculate cell size
270-
cz = lambda l, cellsize: max(cellsize, (l.extent().xMaximum() - l.extent().xMinimum()) / l.width())
270+
def cz(l, cellsize): return max(cellsize, (l.extent().xMaximum() - l.extent().xMinimum()) / l.width())
271271

272272
for layer in layers:
273273
cellsize = cz(layer, cellsize)

0 commit comments

Comments
 (0)
Please sign in to comment.