Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix cz function
  • Loading branch information
Médéric RIBREUX committed Nov 4, 2017
1 parent 74826dc commit c63df20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -267,7 +267,7 @@ def getDefaultCellSize(self):
layers = [l for l in self.inputLayers if isinstance(l, QgsRasterLayer)]

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

for layer in layers:
cellsize = cz(layer, cellsize)
Expand Down

0 comments on commit c63df20

Please sign in to comment.