Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Vegas-Regidor committed Aug 29, 2019
1 parent 95ac988 commit 84cc65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esmvalcore/preprocessor/_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def climate_statistics(cube, operator='mean', period='full'):
operator = get_iris_analysis_operation(operator)
cube = cube.aggregated_by(clim_coord, operator)
cube.remove_coord('time')
iris.util.promote_aux_coord_to_dim_coord(cube, clim_coord)
iris.util.promote_aux_coord_to_dim_coord(cube, clim_coord.name())
return cube


Expand Down

0 comments on commit 84cc65f

Please sign in to comment.