From 7fa52d074160e9bf30e32e6871a297e40040534b Mon Sep 17 00:00:00 2001 From: mmedl94 Date: Mon, 9 Dec 2024 15:27:38 +0100 Subject: [PATCH] fixed small bug where colors are stored as tuples instead of lists --- inst/python/interactive_tour.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/python/interactive_tour.py b/inst/python/interactive_tour.py index a5bc027..423ae8e 100644 --- a/inst/python/interactive_tour.py +++ b/inst/python/interactive_tour.py @@ -152,11 +152,11 @@ def get_colors(self, color_scale): else: cmap = plt.get_cmap("plasma") values = np.linspace(0, 1, self.n_subsets) - colors = [cmap(value) for value in values] + colors = [list(cmap(value)) for value in values] else: cmap = plt.get_cmap(color_scale) values = np.linspace(0, 1, self.n_subsets) - colors = [cmap(value) for value in values] + colors = [list(cmap(value)) for value in values] return colors def initialize_subselections(self):