Skip to content

Commit

Permalink
Leave no doubt
Browse files Browse the repository at this point in the history
  • Loading branch information
nailend committed Mar 15, 2024
1 parent c97fd63 commit 5eae293
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 5eae293

Please sign in to comment.