Skip to content

Commit 01b467f

Browse files
committed
imgs from runner
1 parent 9eb050c commit 01b467f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/pl/test_colorbar.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ def _make_multi_image_single_channel_sdata(self) -> SpatialData:
2828
return SpatialData(images={"img1": img1, "img2": img2}, labels={"lab": labels})
2929

3030
def test_plot_image_auto_colorbar_for_single_channel(self, sdata_blobs: SpatialData):
31-
sdata_blobs.pl.render_images(element="blobs_image").pl.show()
31+
# Create a single-channel image by selecting only channel 0
32+
original_img = sdata_blobs["blobs_image"]
33+
single_channel_img = original_img.isel(c=0).expand_dims("c")
34+
sdata_blobs["blobs_image_1c"] = single_channel_img
35+
sdata_blobs.pl.render_images(element="blobs_image_1c").pl.show()
3236

3337
def test_plot_colorbar_img_default_location(self, sdata_blobs: SpatialData):
3438
sdata_blobs.pl.render_images("blobs_image", channel=0, cmap="Reds").pl.show()

0 commit comments

Comments
 (0)