Skip to content

Commit

Permalink
fix: resolve resampling problem for geothermal variable efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
yechenyan committed Dec 28, 2024
1 parent 12d7107 commit c8ef349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -4481,6 +4481,10 @@ def add_enhanced_geothermal(n, egs_potentials, egs_overlap, costs):
efficiency = pd.read_csv(
snakemake.input.egs_capacity_factors, parse_dates=True, index_col=0
)
if snakemake.config["clustering"]["temporal"]["resolution_sector"]:
efficiency = efficiency.resample(
snakemake.config["clustering"]["temporal"]["resolution_sector"]
).mean()
logger.info("Adding Enhanced Geothermal with time-varying capacity factors.")
else:
efficiency = 1.0
Expand Down

0 comments on commit c8ef349

Please sign in to comment.