aramis-lab / clinica

Software platform for clinical neuroimaging studies
http://www.clinica.run/
Other
220 stars 74 forks source link

Deprecated `get_cmap` function was removed in Matplotlib 3.9.0 #1182

Closed NicolasGensollen closed 4 months ago

NicolasGensollen commented 4 months ago

Matplotlib 3.9.0 was released yesterday (May 16th 2024).

Among the breaking changes of their API is the removal of matplotlib.cm.get_cmap, see changelog here.

This function seems to only be used here:

https://github.com/aramis-lab/clinica/blob/7f7a0b412caa4a5166bdded5467cb5aed3eeebbe/clinica/pipelines/machine_learning/ml_utils.py#L125

We need to update this to use the new API.