Skip to content

Commit 353f9b0

Browse files
committed
test fixes
1 parent adeb92c commit 353f9b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/spatialdata_plot/pl/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,9 +2278,9 @@ def _type_check_params(param_dict: dict[str, Any], element_type: str) -> dict[st
22782278
groups = param_dict.get("groups")
22792279
if groups is None:
22802280
raise ValueError("When specifying 'palette', 'groups' must also be specified.")
2281-
if len(groups) != len(palette):
2281+
if len(groups) != len(palette_group):
22822282
raise ValueError(
2283-
f"The length of 'palette' and 'groups' must be the same, length is {len(palette)} and"
2283+
f"The length of 'palette' and 'groups' must be the same, length is {len(palette_group)} and"
22842284
f"{len(groups)} respectively."
22852285
)
22862286

tests/pl/test_colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ 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("blobs_image", element="img").pl.show()
31+
sdata_blobs.pl.render_images(element="blobs_image").pl.show()
3232

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

0 commit comments

Comments
 (0)