Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacata committed Oct 30, 2024
1 parent bead333 commit 7b0e386
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PGM = r.slopeunits
# note: to deactivate a module, just place a file "DEPRECATED" into the subdir
ALL_SUBDIRS := ${sort ${dir ${wildcard */.}}}
DEPRECATED_SUBDIRS := ${sort ${dir ${wildcard */DEPRECATED}}}
RM_SUBDIRS := bin/ docs/ etc/ scripts/
RM_SUBDIRS := bin/ docs/ etc/ scripts/ testsuite/
SUBDIRS_1 := $(filter-out $(DEPRECATED_SUBDIRS), $(ALL_SUBDIRS))
SUBDIRS := $(filter-out $(RM_SUBDIRS), $(SUBDIRS_1))

Expand Down
2 changes: 1 addition & 1 deletion r.slopeunits.create/r.slopeunits.create.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
# %end

# %rules
# % required: g,slumapvect
# % requires: -g,slumapvect
# %end

import atexit
Expand Down
6 changes: 3 additions & 3 deletions r.slopeunits.optimize/r.slopeunits.optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def run_batch(
f"Calculating metrics for cvmin={str(cvmin)} and "
"areamin={str(areamin)} ..."
)
metrics = grass.run_command(
metrics = grass.parse_command(
"r.slopeunits.metrics",
basin=basin,
dem=dem,
Expand Down Expand Up @@ -603,8 +603,8 @@ def main():
float(options["areamin"].split(",")[0]),
float(options["areamin"].split(",")[1]),
]
epsilonx = options["epsilonx"]
epsilony = options["epsilony"]
epsilonx = float(options["epsilonx"])
epsilony = float(options["epsilony"])
outdir = os.path.abspath(options["outdir"])

calcd_file = os.path.join(outdir, "calcd.dat")
Expand Down

0 comments on commit 7b0e386

Please sign in to comment.