Skip to content

Commit

Permalink
Review petrasovaa
Browse files Browse the repository at this point in the history
  • Loading branch information
anikaweinmann committed Aug 15, 2022
1 parent bf7acb3 commit 84cd796
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/raster/r.mapcalc.tiled/r.mapcalc.tiled.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,30 +152,29 @@ def main():
# v8.2 GridModule doesn't require tile size anymore
# this is proxy for v8.2
# can be removed in v9.0
if width:
width = int(width)
if height:
height = int(height)
if not parallel_rpatch_available:
warning = False
if not width:
width = 1000
warning = True
else:
width = int(width)
# else:
# width = int(width)
if not height:
height = 1000
warning = True
else:
height = int(height)
# else:
# height = int(height)
if warning:
# square tiles tend to be slower than horizontal slices
gscript.warning(
_(
"No tile width or height provided, default tile size set: {h} rows x {w} cols."
).format(h=height, w=width)
)
else:
if width:
width = int(width)
if height:
height = int(height)
overlap = int(options["overlap"])
processes = options["nprocs"]
patch_backend = options["patch_backend"]
Expand Down

0 comments on commit 84cd796

Please sign in to comment.