Skip to content

Commit

Permalink
Handle mixed types in nested lists in metadata (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjoseph92 committed Jun 21, 2023
1 parent d53f3dc commit 0b68756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stackstac/accumulate_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def dict_to_coords(
dtype="object"
if (
isinstance(props, _ourlist)
and len(set(len(x) for x in props if isinstance(x, (list, tuple))))
and len(set(len(x) if isinstance(x, (list, tuple)) else type(x) for x in props))
> 1
)
else None,
Expand Down

0 comments on commit 0b68756

Please sign in to comment.