Skip to content

Commit

Permalink
tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobson committed May 9, 2024
1 parent 4a6d223 commit 6a99775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions swmmanywhere/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class SubcatchmentDerivation(BaseModel):
description = "Membership threshold for subbasin derivation.")

subbasin_clip_method: str = Field(default = 'subbasin',
unit = '-',
description = "Method to clip subbasins, can be subbasin or community.")
unit = '-',
description = "Method to clip subbasins, can be `subbasin` or `community`.")

lane_width: float = Field(default = 3.5,
ge = 2.0,
Expand Down
4 changes: 1 addition & 3 deletions swmmanywhere/shortest_path_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ def dijkstra_pq(G: nx.MultiDiGraph,
del paths[node], shortest_paths[node]

if len(G.nodes) == 0:
raise ValueError("""No nodes with path to outlet, consider
broadening bounding box or removing trim_to_outlet
from config graphfcn_list""")
raise ValueError("""No nodes with path to outlet""")

edges_to_keep: set = set()

Expand Down

0 comments on commit 6a99775

Please sign in to comment.