Skip to content

Commit

Permalink
Adapt naming in processing
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Jun 24, 2024
1 parent ca095fc commit 1b26471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/oemof/solph/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ def results(model, remove_last_time_point=False):
# add dual variables for bus constraints
if model.dual is not None:
grouped = groupby(
sorted(model.BusBlock.balance.iterkeys()), lambda p: p[0]
sorted(model.BusBlock.balance.iterkeys()), lambda t: t[0]
)
for bus, timeindex in grouped:
for bus, timestep in grouped:
duals = [
model.dual[model.BusBlock.balance[bus, t]]
for _, t in timeindex
for _, t in timestep
]
if model.es.periods is None:
df = pd.DataFrame({"duals": duals}, index=result_index[:-1])
Expand Down

0 comments on commit 1b26471

Please sign in to comment.