Skip to content

Commit

Permalink
fix r.extract.greenroofs
Browse files Browse the repository at this point in the history
  • Loading branch information
anikaweinmann committed Mar 25, 2024
1 parent 6804fb7 commit 8f1846b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ def main():
elif options["used_thresh"] == "ndvi_thresh":
ndvi_thresh = float(options["ndvi_thresh"])
else:
grass.fatal(_("The parameter <used_thresh> has to be <ndvi_thresh> or <ndvi_perc>!"))
grass.fatal(
_(
"The parameter <used_thresh> has to be <ndvi_thresh> or <ndvi_perc>!"
)
)

# Creating tiles
tiles_list, number_tiles = create_grid(tile_size, "grid_cell", fnk_vect)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,12 @@ def main():
gb_thresh = calculate_gb_threshold(green_blue_ratio, fnk_vect, gb_perc)
elif options["used_thresh"] == "gb_thresh":
gb_thresh = float(options["gb_thresh"])
else:
grass.fatal(
_(
"The parameter <used_thresh> has to be <gb_thresh> or <gb_perc>!"
)
)

# Creating tiles
grid = f"grid_{os.getpid()}"
Expand Down

0 comments on commit 8f1846b

Please sign in to comment.