dynamics-of-stellar-systems / dynamite

dynamics, age and metallicity indicators tracing evolution
MIT License
14 stars 1 forks source link

Update deprecated Python features #395

Open maindlt opened 3 months ago

maindlt commented 3 months ago

A new install with Python 3.12 will (unless otherwise instructed) install the latest numpy (2.0.0) and matplotlib (3.9.0) versions. Both removed previously deprecated features that are still used in DYNAMITE and that cause a crash (e.g., 'numpy' has no attribute 'product', 'matplotlib.cm' has no attribute 'get_cmap'), breaking compatibility.

Identify such cases and update while maintaining compatibility with earlier Python versions, if possible >=3.8.