From 4c04307b8bc0c7588993db0b83fe905128f0a026 Mon Sep 17 00:00:00 2001 From: Bane Sullivan Date: Sat, 27 Jan 2024 20:14:33 -0800 Subject: [PATCH] Revert "fixed get_cmap dependency" (#189) --- localtileserver/tiler/palettes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localtileserver/tiler/palettes.py b/localtileserver/tiler/palettes.py index 22129211..2b24efd5 100644 --- a/localtileserver/tiler/palettes.py +++ b/localtileserver/tiler/palettes.py @@ -17,7 +17,7 @@ def is_mpl_cmap(name: str): try: import matplotlib - matplotlib.cm.get_cmap(name) + matplotlib.colormaps.get_cmap(name) return True except ImportError: # pragma: no cover logger.error("Install matplotlib for additional colormap choices.")