We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e1540 commit c832f58Copy full SHA for c832f58
lib/iris/analysis/calculus.py
@@ -26,11 +26,11 @@
26
import six
27
28
import re
29
+import warnings
30
31
import cf_units
32
import numpy as np
33
-from iris._deprecation import warn_deprecated
34
import iris.cube
35
import iris.coords
36
import iris.coord_systems
@@ -91,8 +91,8 @@ def _construct_midpoint_coord(coord, circular=None):
91
if circular is None:
92
circular = getattr(coord, 'circular', False)
93
elif circular != getattr(coord, 'circular', False):
94
- warn_deprecated('circular flag and Coord.circular attribute do '
95
- 'not match')
+ warnings.warn('circular flag and Coord.circular attribute do '
+ 'not match')
96
97
if coord.ndim != 1:
98
raise iris.exceptions.CoordinateMultiDimError(coord)
0 commit comments