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

Commit d84b956

Browse files
assert image is MultiscaleSpatialImage
1 parent 0735f68 commit d84b956

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

spatialdata_xenium_explorer/images.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ def write_multiscale(
2424
pixelsize: float = 0.2125,
2525
):
2626
print("Writing multiscale image")
27+
28+
assert isinstance(
29+
multiscale, MultiscaleSpatialImage
30+
), f"For now, only `MultiscaleSpatialImage` is supported. Found {type(multiscale)}."
31+
2732
scale_names = list(multiscale.children)
2833
channel_names = list(multiscale[scale_names[0]].c.values)
2934

0 commit comments

Comments
 (0)