Skip to content

Commit

Permalink
bugfix for models with no structures
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeshotel committed Aug 26, 2024
1 parent 34367b7 commit be07656
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ripple1d/ops/subset_gpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ def process_as_one_ras_reach(self) -> tuple:
& (self.source_structure["river_station"] >= float(self.ds_rs))
& (self.source_structure["river_station"] <= float(self.us_rs))
]
else:
structures_subset_gdf = None
river_subset_gdf = self.source_river.loc[
(self.source_river["river"] == self.us_river) & (self.source_river["reach"] == self.us_reach)
]
Expand Down

0 comments on commit be07656

Please sign in to comment.