Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 93fbd15

Browse files
geo_df loc should be after intrisic conversion
1 parent a2722b2 commit 93fbd15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spatialdata_xenium_explorer/converter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ def write(
9595
shapes_key, geo_df = get_element(sdata, "shapes", shapes_key, return_key=True)
9696

9797
if _should_save(mode, "b") and geo_df is not None:
98+
geo_df = to_intrinsic(sdata, geo_df, image_key)
99+
98100
if sdata.table is not None:
99101
geo_df = geo_df.loc[adata.obs[adata.uns["spatialdata_attrs"]["instance_key"]]]
100102

101-
geo_df = to_intrinsic(sdata, geo_df, image_key)
102103
write_polygons(path, geo_df.geometry, polygon_max_vertices)
103104

104105
### Saving transcripts

0 commit comments

Comments
 (0)