Skip to content

Commit

Permalink
Fix timeincrement in optimize.py
Browse files Browse the repository at this point in the history
Due to oemof.solph upgrade es.timeincrement is set to a series.
This series has to be resticted to 3 timesteps just as es.timeindex is.
  • Loading branch information
MaGering committed Aug 7, 2023
1 parent c3c7192 commit 662159c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def get_additional_scalars():
# Reduce number of timestep for debugging
if config.settings.optimize.debug:
es.timeindex = es.timeindex[:3]
es.timeincrement = es.timeincrement[:3]

logger.info("Using DEBUG mode: Running model with first 3 timesteps only.")

Expand Down

0 comments on commit 662159c

Please sign in to comment.