Skip to content

Commit 409f92c

Browse files
authored
Faster concatenation of cubes with AuxCoordFactorys (#6038)
* Faster concatenation of cubes with AuxCoordFactories * Add whatsnew
1 parent 1115fa4 commit 409f92c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/src/whatsnew/latest.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ This document explains the changes made to Iris for this release
8383
#. `@bouweandela`_ updated :meth:`iris.cube.CubeList.concatenate` so it keeps
8484
ancillary variables and cell measures lazy. (:pull:`6010`)
8585

86+
#. `@bouweandela`_ made :meth:`iris.cube.CubeList.concatenate` faster for cubes
87+
that have coordinate factories. (:pull:`6038`)
88+
8689
🔥 Deprecations
8790
===============
8891

lib/iris/_concatenate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def name_key_func(factory):
469469

470470
for factory in sorted(cube.aux_factories, key=name_key_func):
471471
coord = factory.make_coord(cube.coord_dims)
472-
dims = cube.coord_dims(coord)
472+
dims = factory.derived_dims(cube.coord_dims)
473473
metadata = _CoordMetaData(coord, dims)
474474
self.derived_metadata.append(metadata)
475475
coord_and_dims = _DerivedCoordAndDims(coord, tuple(dims), factory)

0 commit comments

Comments
 (0)