From 713a594691ab05ec649025c578ac20fd34663068 Mon Sep 17 00:00:00 2001 From: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com> Date: Wed, 10 Jan 2024 20:16:04 -0500 Subject: [PATCH] numpy 2.0 compatibility np.unicode_ --- cmocean/tools.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmocean/tools.py b/cmocean/tools.py index 5a820de..2fcdc3f 100644 --- a/cmocean/tools.py +++ b/cmocean/tools.py @@ -8,10 +8,7 @@ import matplotlib as mpl -if sys.version_info > (3,): - _string_types = (str, np.str_, np.unicode_) -else: - _string_types = (basestring, np.str_, np.unicode_) +_string_types = (str, np.str_) def print_colormaps(cmaps, N=256, returnrgb=True, savefiles=False):