From dcdf33740e02a06ea14cb298f86ff3f0100b258c Mon Sep 17 00:00:00 2001 From: Anton Goloborodko Date: Fri, 9 Aug 2024 17:03:08 +0200 Subject: [PATCH] make register_cmap backward compatible wrt to argument order --- cooltools/lib/plotting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cooltools/lib/plotting.py b/cooltools/lib/plotting.py index e8f1ac7..ceed7e5 100644 --- a/cooltools/lib/plotting.py +++ b/cooltools/lib/plotting.py @@ -100,8 +100,8 @@ def get_cmap(name): def _register_cmaps(): for name, pal in PALETTES.items(): - register_cmap(list_to_colormap(pal), name=name) - register_cmap(list_to_colormap(pal[::-1]), name=name + "_r") + register_cmap(cmap=list_to_colormap(pal), name=name) + register_cmap(cmap=list_to_colormap(pal[::-1]), name=name + "_r") _register_cmaps()