Skip to content

Commit

Permalink
Merge pull request #3 from drifter089/main
Browse files Browse the repository at this point in the history
Merge upstream
  • Loading branch information
GbotemiB authored Dec 7, 2024
2 parents 9c983ca + 63f4bc8 commit c5c823f
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 c5c823f

Please sign in to comment.