Skip to content

Commit

Permalink
small changes for default treeparamset
Browse files Browse the repository at this point in the history
  • Loading branch information
linakrisztian committed Jan 2, 2024
1 parent 916478c commit 3b67826
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions grass-gis-addons/m.analyse.trees/v.trees.param/v.trees.param.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ def main():
param = {
"treecrowns": treecrowns_subsets,
"treecrowns_complete": treecrowns,
"treeparamset": treeparamset,
}
if ndom:
param["ndom"] = ndom
Expand All @@ -249,8 +250,6 @@ def main():
param["distance_building"] = distance_building
if distance_tree:
param["distance_tree"] = distance_tree
if options["treeparamset"]:
param["treeparamset"] = treeparamset
v_tree_param = Module(
"v.trees.param.worker",
**param,
Expand Down Expand Up @@ -307,10 +306,9 @@ def main():
vector=f"{subset_names[0]}@{mapset_names[0]},{treecrowns}",
overwrite=True,
)
if options["treeparamset"]:
grass.message(
_(f"Calculated following tree parameters: {treeparamset}")
)
grass.message(
_(f"Calculated following tree parameters: {treeparamset}")
)


if __name__ == "__main__":
Expand Down

0 comments on commit 3b67826

Please sign in to comment.