Skip to content

Commit

Permalink
Faster concatenation of cubes with AuxCoordFactorys (SciTools#6038)
Browse files Browse the repository at this point in the history
* Faster concatenation of cubes with AuxCoordFactories

* Add whatsnew
  • Loading branch information
bouweandela authored Jul 9, 2024
1 parent 1115fa4 commit 409f92c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/src/whatsnew/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ This document explains the changes made to Iris for this release
#. `@bouweandela`_ updated :meth:`iris.cube.CubeList.concatenate` so it keeps
ancillary variables and cell measures lazy. (:pull:`6010`)

#. `@bouweandela`_ made :meth:`iris.cube.CubeList.concatenate` faster for cubes
that have coordinate factories. (:pull:`6038`)

🔥 Deprecations
===============

Expand Down
2 changes: 1 addition & 1 deletion lib/iris/_concatenate.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def name_key_func(factory):

for factory in sorted(cube.aux_factories, key=name_key_func):
coord = factory.make_coord(cube.coord_dims)
dims = cube.coord_dims(coord)
dims = factory.derived_dims(cube.coord_dims)
metadata = _CoordMetaData(coord, dims)
self.derived_metadata.append(metadata)
coord_and_dims = _DerivedCoordAndDims(coord, tuple(dims), factory)
Expand Down

0 comments on commit 409f92c

Please sign in to comment.