Skip to content

Commit

Permalink
Fix postprocessing error for oemof entries with more than 2 node items
Browse files Browse the repository at this point in the history
  • Loading branch information
henhuy committed Jun 5, 2024
1 parent 322b05d commit 445af1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Features

Fixes

* MultiIndexError in postprocessing if more than 2 oemof nodes are given `#174 <https://github.com/oemof/oemof-tabular/issues/174>`_


0.0.5 Patch Release - Miraculous Mary (2024-02-23)
-----------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/oemof/tabular/postprocessing/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def convert_to_pandas(value):
for key, series in data.items():
if series.empty:
continue
if len(key) != 2:
continue
if data_key == "period_scalars":
series = series.transpose()
mindex = pd.MultiIndex.from_tuples(
Expand Down

0 comments on commit 445af1d

Please sign in to comment.