Skip to content

Commit

Permalink
r.univar: parallelization for extended statistics (#2683)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsms committed Nov 17, 2023
1 parent 9742987 commit c307930
Show file tree
Hide file tree
Showing 4 changed files with 297 additions and 157 deletions.
6 changes: 3 additions & 3 deletions raster/r.univar/benchmark/benchmark_r_univar.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ def benchmark(size, label, results):


def generate_map(rows, cols, fname):
Module("g.region", flags="p", s=0, n=rows, w=0, e=cols, res=1)
Module("g.region", flags="p", rows=rows, cols=cols, res=1)
# Generate using r.random.surface if r.surf.fractal fails
try:
print("Generating reference map using r.surf.fractal...")
Module("r.surf.fractal", output=fname)
Module("r.surf.fractal", output=fname, overwrite=True)
except CalledModuleError:
print("r.surf.fractal fails, using r.random.surface instead...")
Module("r.random.surface", output=fname)
Module("r.random.surface", output=fname, overwrite=True)


if __name__ == "__main__":
Expand Down

0 comments on commit c307930

Please sign in to comment.