Skip to content

Commit

Permalink
set _duplicate_ids_df to empty dataframe if waterbodies are not being…
Browse files Browse the repository at this point in the history
… routed
  • Loading branch information
shorvath-noaa committed May 3, 2024
1 parent 692d28a commit b345c84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/troute-network/troute/HYFeaturesNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit b345c84

Please sign in to comment.