Skip to content

Commit

Permalink
Merge pull request #1222 from GbotemiB/hydrobasin-path
Browse files Browse the repository at this point in the history
Update hydrobasin path
  • Loading branch information
ekatef authored Dec 6, 2024
2 parents d727d39 + cd87051 commit 63f4bc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build_renewable_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,9 @@ def create_scaling_factor(
# filter plants for hydro
if snakemake.wildcards.technology.startswith("hydro"):
country_shapes = gpd.read_file(paths.country_shapes)
hydrobasins = gpd.read_file(os.path.join(BASE_DIR, resource["hydrobasins"]))
hydrobasins_path = os.path.join(BASE_DIR, resource["hydrobasins"])
resource["hydrobasins"] = hydrobasins_path
hydrobasins = gpd.read_file(hydrobasins_path)
ppls = load_powerplants(snakemake.input.powerplants)

hydro_ppls = ppls[ppls.carrier == "hydro"]
Expand Down

0 comments on commit 63f4bc8

Please sign in to comment.