Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaelicke committed Oct 29, 2024
1 parent 1fe84cb commit ba3ecca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions delineate.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ def plot_basins(suffix: str):
# Iterate over the basins so that we only have
# to open up each Level 2 Basin shapefile once, and handle all of the gages in it
for basin in basins:
# mmaelicke: I am not why this happens or where this comes from, but for some
# of my inputs ie. on megabasin 11 or 12, basin in a float. Then, load_gdf does not work.
basin = int(basin)

# Create a dataframe of the gages_basins_join in that basins
gages_in_basin = gages_basins_join[gages_basins_join["BASIN"] == basin]
num_gages_in_basin = len(gages_in_basin)
Expand Down

0 comments on commit ba3ecca

Please sign in to comment.