Skip to content

Commit

Permalink
Merge branch 'fix/bug_refactoring_multiindex_in_timeseries' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nailend committed Mar 15, 2024
2 parents 211c1cc + 5eae293 commit ba3830b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_adapter_oemof/build_datapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def build_datapackage(

def _reduce_lists(x):
"""Unnest list of single tuple or list of single list"""
if isinstance(x[0], (list, tuple)):
if isinstance(x[0], (list, tuple)) and len(x[0]) == 1:
x = x.map(lambda x: x[0])
return x

Expand Down

0 comments on commit ba3830b

Please sign in to comment.