ESMValGroup / ESMValTool

ESMValTool: A community diagnostic and performance metrics tool for routine evaluation of Earth system models in CMIP
https://www.esmvaltool.org
Apache License 2.0
218 stars 128 forks source link

recipe_arctic_ocean.yml fails to run #1704

Closed bouweandela closed 4 years ago

bouweandela commented 4 years ago

When I run the recipe recipe_arctic_ocean.yml, it fails with the following stack trace:

Traceback (most recent call last):
  File "/pf/b/b381141/src/esmvalgroup/esmvaltool/esmvaltool/diag_scripts/arctic_ocean/arctic_ocean.py", line 525, in <module>
    main(config)
  File "/pf/b/b381141/src/esmvalgroup/esmvaltool/esmvaltool/diag_scripts/arctic_ocean/arctic_ocean.py", line 493, in main
    run_hofm_plot(cfg, observations)
  File "/pf/b/b381141/src/esmvalgroup/esmvaltool/esmvaltool/diag_scripts/arctic_ocean/arctic_ocean.py", line 132, in run_hofm_plot
    plot_params = hofm_plot_params(cfg, hofm_var, var_number, observations)
  File "/pf/b/b381141/src/esmvalgroup/esmvaltool/esmvaltool/diag_scripts/arctic_ocean/arctic_ocean.py", line 97, in hofm_plot_params
    cmap = get_cmap(cfg['hofm_cmap'][var_number])
  File "/pf/b/b381141/src/esmvalgroup/esmvaltool/esmvaltool/diag_scripts/arctic_ocean/utils.py", line 235, in get_cmap
    raise ValueError('Get unrecognised name for the colormap `{}`.\
ValueError: Get unrecognised name for the colormap `Spectral_r`.                            Colormaps should be from standard matplotlib                             set or from cmocean package.

Here are some version numbers that might be relevant:

matplotlib-base           3.2.2
cmocean                   2.0
koldunovn commented 4 years ago

Matplolib change the handling of the colormap names. I will fix it.