Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recipe_arctic_ocean.yml fails to run #1704

Closed
bouweandela opened this issue Jul 9, 2020 · 1 comment · Fixed by #1722
Closed

recipe_arctic_ocean.yml fails to run #1704

bouweandela opened this issue Jul 9, 2020 · 1 comment · Fixed by #1722
Assignees

Comments

@bouweandela
Copy link
Member

bouweandela commented Jul 9, 2020

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants