Skip to content

Commit

Permalink
Merge pull request #145 from Dewberry/bugfix/no-structure
Browse files Browse the repository at this point in the history
bugfix for models with no structures
  • Loading branch information
slawler authored Aug 26, 2024
2 parents 34367b7 + 8320cb9 commit 584d7b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ripple1d"
version = "0.4.1"
version = "0.4.2"
description = "HEC-RAS model automation"
readme = "README.md"
maintainers = [
Expand Down
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
2 changes: 1 addition & 1 deletion ripple1d/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""ripple1d version."""

__version__ = "0.4.1"
__version__ = "0.4.2"

0 comments on commit 584d7b4

Please sign in to comment.