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

Fix for recipe_ocean_ice_extent.yml #1744

Merged
merged 1 commit into from
Jul 22, 2020
Merged

Conversation

mattiarighi
Copy link
Contributor

The recipe was returning the following error:

Traceback (most recent call last):
  File "/mnt/lustre01/pf/b/b309057/ESMValTool/public/esmvaltool/diag_scripts/ocean/diagnostic_seaice.py", line 705, in <module>
    main(config)
  File "/mnt/lustre01/pf/b/b309057/ESMValTool/public/esmvaltool/diag_scripts/ocean/diagnostic_seaice.py", line 694, in main
    make_map_plots(cfg, metadatas[filename], filename)
  File "/mnt/lustre01/pf/b/b309057/ESMValTool/public/esmvaltool/diag_scripts/ocean/diagnostic_seaice.py", line 449, in make_map_plots
    make_polar_map(cube, pole=pole, cmap=cmap)
  File "/mnt/lustre01/pf/b/b309057/ESMValTool/public/esmvaltool/diag_scripts/ocean/diagnostic_seaice.py", line 292, in make_polar_map
    linrange = np.linspace(0., 100., 21.)
  File "<__array_function__ internals>", line 5, in linspace
  File "/work/bd0080/b309057/SOFTWARE/miniconda3/envs/esmvaltool/lib/python3.8/site-packages/numpy/core/function_base.py", line 113, in linspace
    num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer

This PR quickly fixes it.

@bouweandela bouweandela merged commit 6a5546d into master Jul 22, 2020
@bouweandela bouweandela deleted the quick_fix_ice_extent branch July 22, 2020 08:59
@bouweandela bouweandela changed the title Quick fix for recipe_ocean_ice_extent.yml Fix for recipe_ocean_ice_extent.yml Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants