matplotlib / cmocean

Colormap setup for standardizing commonly-plotting oceanographic variables.
MIT License
230 stars 52 forks source link

numpy 2.0 compatibility np.unicode_ #99

Closed MatthewFlamm closed 9 months ago

MatthewFlamm commented 9 months ago

I also assume that the check for python 2.0 is no longer needed since setup.py requires python >= 3.8.

See https://numpy.org/devdocs/numpy_2_0_migration_guide.html#main-namespace

Closes #98

kthyng commented 9 months ago

@MatthewFlamm Thank you!!

kthyng commented 9 months ago

This change is now available in the newest version of cmocean on PyPI (v3.1.3) and should shortly be available on conda-forge too. Thanks again.

MatthewFlamm commented 9 months ago

Thanks for quickly releasing!

kthyng commented 3 months ago

Can I just state again how great this was for you to do? I just hit this myself in my own older version of cmocean and realized you had already fixed it as I was going in to do it myself and couldn't get another version of my code to hit the error because I already had your fix in it. Thanks again!