Skip to content

Commit

Permalink
numpy 2.0 compatibility np.unicode_
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFlamm authored Jan 11, 2024
1 parent 4b627ff commit 713a594
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmocean/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 713a594

Please sign in to comment.