From 63d245c6519bc8fe1c0fa27510b3e12c203ed449 Mon Sep 17 00:00:00 2001 From: Luca Marconato Date: Mon, 17 Feb 2025 13:44:07 +0100 Subject: [PATCH] small fix color type --- src/spatialdata_plot/pl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spatialdata_plot/pl/utils.py b/src/spatialdata_plot/pl/utils.py index 2fe377cc..d0b87286 100644 --- a/src/spatialdata_plot/pl/utils.py +++ b/src/spatialdata_plot/pl/utils.py @@ -826,7 +826,7 @@ def _map_color_seg( else: # Case D: User didn't specify a column to color by, but modified the na_color val_im = map_array(seg.copy(), cell_id, cell_id) - if "#" in str(color_vector[0]): + if "#" in str(color_vector.tolist()[0]): # we have hex colors assert all(_is_color_like(c) for c in color_vector), "Not all values are color-like." cols = colors.to_rgba_array(color_vector)