Skip to content

Commit 0b68756

Browse files
authored
Handle mixed types in nested lists in metadata (#195)
1 parent d53f3dc commit 0b68756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackstac/accumulate_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def dict_to_coords(
171171
dtype="object"
172172
if (
173173
isinstance(props, _ourlist)
174-
and len(set(len(x) for x in props if isinstance(x, (list, tuple))))
174+
and len(set(len(x) if isinstance(x, (list, tuple)) else type(x) for x in props))
175175
> 1
176176
)
177177
else None,

0 commit comments

Comments
 (0)