From aacf4f665aca43832b234b0750e2ed1938486ac2 Mon Sep 17 00:00:00 2001 From: Sean Horvath Date: Fri, 3 May 2024 14:53:41 +0000 Subject: [PATCH] set _duplicate_ids_df to empty dataframe if waterbodies are not being routed --- src/troute-network/troute/HYFeaturesNetwork.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/troute-network/troute/HYFeaturesNetwork.py b/src/troute-network/troute/HYFeaturesNetwork.py index fc0cb02f5..59df5ec13 100644 --- a/src/troute-network/troute/HYFeaturesNetwork.py +++ b/src/troute-network/troute/HYFeaturesNetwork.py @@ -518,6 +518,7 @@ def preprocess_waterbodies(self, lakes): self._waterbody_connections = {} self._waterbody_type_specified = False self._link_lake_crosswalk = None + self._duplicate_ids_df = pd.DataFrame() self._dataframe = self.dataframe.drop('waterbody', axis=1).drop_duplicates()