Skip to content

Commit

Permalink
Add NO_VALID_CROSSWALKS to FIM_exit_codes
Browse files Browse the repository at this point in the history
  • Loading branch information
mluck committed Jul 11, 2024
1 parent 9c1f3af commit 3e57cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/add_crosswalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from numpy import unique
from rasterstats import zonal_stats

from utils.fim_enums import FIM_exit_codes
from utils.shared_functions import getDriver
from utils.shared_variables import FIM_ID

Expand Down Expand Up @@ -89,7 +90,7 @@ def add_crosswalk(

if len(crosswalk) < 1:
print("No relevant streams within HUC boundaries.")
sys.exit(0)
sys.exit(FIM_exit_codes.NO_VALID_CROSSWALKS.value)

if input_catchments.HydroID.dtype != 'int':
input_catchments.HydroID = input_catchments.HydroID.astype(int)
Expand Down
1 change: 1 addition & 0 deletions src/utils/fim_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ class FIM_exit_codes(Enum):
NO_FLOWLINES_EXIST = 61
EXCESS_UNIT_ERRORS = 62
NO_BRANCH_LEVELPATHS_EXIST = 63
NO_VALID_CROSSWALKS = 64

0 comments on commit 3e57cb1

Please sign in to comment.