Skip to content

Commit

Permalink
Merge pull request #99 from MatthewFlamm/patch-1
Browse files Browse the repository at this point in the history
numpy 2.0 compatibility np.unicode_
  • Loading branch information
kthyng authored Jan 22, 2024
2 parents 4e68f84 + 713a594 commit 6b086e0
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 6b086e0

Please sign in to comment.