Skip to content

Commit 718fad1

Browse files
committed
Calculation of derived coords points and bounds is always lazy.
1 parent 6bd26b7 commit 718fad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/iris/aux_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _nd_bounds(coord, dims, ndim):
188188
# Transpose to be consistent with the Cube.
189189
sorted_pairs = sorted(enumerate(dims), key=lambda pair: pair[1])
190190
transpose_order = [pair[0] for pair in sorted_pairs] + [len(dims)]
191-
bounds = coord.core_bounds()
191+
bounds = coord.lazy_bounds()
192192
if dims:
193193
bounds = bounds.transpose(transpose_order)
194194

@@ -216,7 +216,7 @@ def _nd_points(coord, dims, ndim):
216216
# Transpose to be consistent with the Cube.
217217
sorted_pairs = sorted(enumerate(dims), key=lambda pair: pair[1])
218218
transpose_order = [pair[0] for pair in sorted_pairs]
219-
points = coord.core_points()
219+
points = coord.lazy_points()
220220
if dims and transpose_order != list(range(len(dims))):
221221
points = points.transpose(transpose_order)
222222

0 commit comments

Comments
 (0)