Skip to content

Commit

Permalink
reformat file for ruff compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
slawler committed Mar 3, 2025
1 parent d9a4aba commit e959a70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hecstac/ras/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,9 +945,9 @@ def concave_hull(self):
"""Compute and return the concave hull (polygon) for cross sections."""
polygons = []
xs_df = self.xs_gdf # shorthand
assert not all(
[i.is_empty for i in xs_df.geometry]
), "No valid cross-sections found. Possibly non-georeferenced model"
assert not all([i.is_empty for i in xs_df.geometry]), (
"No valid cross-sections found. Possibly non-georeferenced model"
)
assert len(xs_df) > 1, "Only one valid cross-section found."
for river_reach in xs_df["river_reach"].unique():
xs_subset = xs_df[xs_df["river_reach"] == river_reach]
Expand Down

0 comments on commit e959a70

Please sign in to comment.