IMMM-SFA / msd_uncertainty_ebook

eBook: Addressing Uncertainty in MultiSector Dynamics Research
https://uc-ebook.org
Other
43 stars 6 forks source link

plot_objective_performance and plot_factor_performance depreciation errors #122

Open erexer opened 1 week ago

erexer commented 1 week ago

plot_objective_performance and plot_factor_performance throw depreciation errors

msdbook/tests/test_fishery_dynamics.py::test_plot_objective_performance
/Users/lari627/msd_uncertainty_ebook/msdbook/fishery_dynamics.py:51: MatplotlibDeprecationWarning: The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use matplotlib.colormaps[name] or matplotlib.colormaps.get_cmap() or pyplot.get_cmap() instead.
cmap = plt.cm.get_cmap("Blues")

msdbook/tests/test_fishery_dynamics.py::test_plot_factor_performance
/Users/lari627/msd_uncertainty_ebook/msdbook/fishery_dynamics.py:134: MatplotlibDeprecationWarning: The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use matplotlib.colormaps[name] or matplotlib.colormaps.get_cmap() or pyplot.get_cmap() instead.
cmap = plt.cm.get_cmap("RdBu_r")
Jaydon2005 commented 1 week ago

Am I allowed to change fishery_dynamics.py file? since the errors are happening in there?

erexer commented 1 week ago

Yep!