plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
16.06k stars 2.54k forks source link

Make test suite ready for NumPy 2.0.0 #4622

Open bnavigator opened 3 months ago

bnavigator commented 3 months ago

The soon to be released NumPy 2.0.0 removes some aliases of np.nan and np.inf, so these must be removed from the tests in order to keep the test suite green.

Also, when testing data with small integer types like int8, the literals need to be cast beforehand in order to avoid overflow errors.

References

Code PR

marthacryan commented 2 months ago

@bnavigator Is it okay if I push some changes here to handle both versions of numpy?

bnavigator commented 1 month ago

@bnavigator Is it okay if I push some changes here to handle both versions of numpy?

Yes, of course. Sorry I do not have time to enhance it myself right now.