Skip to content

Commit

Permalink
fix key
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Jan 5, 2024
1 parent d9355cc commit fb8c29e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions forcingprocessor/src/forcingprocessor/weight_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ def generate_weights_file(geopackage,grid_file,weights_filepath):
fill=0,
dtype="uint8",
)
if "id":
crosswalk_dict[row["id"]] = np.where(geom_rasterize == 1)
else:
crosswalk_dict[index] = np.where(geom_rasterize == 1)
crosswalk_dict[row["divide_id"]] = np.where(geom_rasterize == 1)


if i % 100 == 0:
perc = i / len(gdf_proj) * 100
Expand Down

0 comments on commit fb8c29e

Please sign in to comment.