Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent b9ae6b0 commit fc34742
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build_renewable_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@
# for offshore regions, the shortest distance to the shoreline is used
offshore_regions = availability.coords["bus"].values
dist_regions = regions.loc[offshore_regions]
dist_regions = dist_regions.map(lambda g: _simplify_polys(g, minarea=1)).set_crs(
dist_regions.crs
)
dist_regions = dist_regions.map(
lambda g: _simplify_polys(g, minarea=1)
).set_crs(dist_regions.crs)
else:
# for onshore regions, the representative point of the region is used
dist_regions = regions.representative_point()
Expand Down

0 comments on commit fc34742

Please sign in to comment.