Skip to content

Commit c832f58

Browse files
lbdreyerpp-mo
authored andcommitted
change deprecation warning to regular warning (#3449)
1 parent 35e1540 commit c832f58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/iris/analysis/calculus.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
import six
2727

2828
import re
29+
import warnings
2930

3031
import cf_units
3132
import numpy as np
3233

33-
from iris._deprecation import warn_deprecated
3434
import iris.cube
3535
import iris.coords
3636
import iris.coord_systems
@@ -91,8 +91,8 @@ def _construct_midpoint_coord(coord, circular=None):
9191
if circular is None:
9292
circular = getattr(coord, 'circular', False)
9393
elif circular != getattr(coord, 'circular', False):
94-
warn_deprecated('circular flag and Coord.circular attribute do '
95-
'not match')
94+
warnings.warn('circular flag and Coord.circular attribute do '
95+
'not match')
9696

9797
if coord.ndim != 1:
9898
raise iris.exceptions.CoordinateMultiDimError(coord)

0 commit comments

Comments
 (0)