Skip to content

Commit 03a7aff

Browse files
authored
fix vertices.
1 parent ebbc28b commit 03a7aff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/segger/validation/xenium_explorer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ def get_flatten_version(polygon_vertices: List[List[Tuple[float, float]]], max_v
2424
np.ndarray: Padded or truncated list of polygon vertices.
2525
"""
2626
flattened = []
27+
28+
if isinstance(vertices, np.ndarray):
29+
vertices = vertices.tolist()
30+
2731
for vertices in polygon_vertices:
2832
if len(vertices) > max_value:
2933
flattened.append(vertices[:max_value])

0 commit comments

Comments
 (0)