diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index 0a6bff8b1..8c16bce09 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -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"]