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

@mattiarighi mattiarighi commented Jul 21, 2020

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.

@mattiarighi mattiarighi added this to the v2.0.0 milestone Jul 21, 2020
@mattiarighi mattiarighi requested review from ledm and bouweandela Jul 21, 2020
@mattiarighi mattiarighi mentioned this pull request Jul 21, 2020
158 tasks
@bouweandela bouweandela merged commit 6a5546d into master Jul 22, 2020
1 check passed
@bouweandela bouweandela deleted the quick_fix_ice_extent branch Jul 22, 2020
@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.

None yet

2 participants