From 6a9977503a26b08171bb3d2fc8a23aefef01370c Mon Sep 17 00:00:00 2001 From: Dobson Date: Thu, 9 May 2024 14:04:23 +0100 Subject: [PATCH] tidying --- swmmanywhere/parameters.py | 4 ++-- swmmanywhere/shortest_path_utils.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/swmmanywhere/parameters.py b/swmmanywhere/parameters.py index f0448a2a..87b48941 100644 --- a/swmmanywhere/parameters.py +++ b/swmmanywhere/parameters.py @@ -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, diff --git a/swmmanywhere/shortest_path_utils.py b/swmmanywhere/shortest_path_utils.py index c4eb7fe9..90420239 100644 --- a/swmmanywhere/shortest_path_utils.py +++ b/swmmanywhere/shortest_path_utils.py @@ -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()