Skip to content

Commit

Permalink
Explicitly infer last interval in storage example
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Jul 9, 2024
1 parent 2e5ca23 commit ced3300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/storage_balanced_unbalanced/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def storage_example():

# create an energy system
idx = pd.date_range("1/1/2017", periods=len(timeseries), freq="h")
es = solph.EnergySystem(timeindex=idx)
es = solph.EnergySystem(timeindex=idx, infer_last_interval=True)

for data_set in DATA:
name = data_set["name"]
Expand Down

0 comments on commit ced3300

Please sign in to comment.