Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/src/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ v3.14.1 (Date TBD)
#. Fixed compatibility with NumPy v2 for :meth:`~iris.coords.Coord.guess_bounds`
:ref:`See the full entry for more<3_14_1_guess_bounds>`.

#. Tentative compatibility with Python 3.14, pending full CI support later.
:ref:`See Dependencies for more<3_14_dependencies>`.

✨ Features
===========

Expand Down Expand Up @@ -166,6 +169,8 @@ v3.14.1 (Date TBD)
exceed the optimum chunksize set in dask. (:pull:`6730`)


.. _3_14_dependencies:

🔗 Dependencies
===============

Expand All @@ -178,6 +183,12 @@ v3.14.1 (Date TBD)
so we anticipate that these pins will be wanted for the v3.14 release.
(:issue:`6775`, :issue:`6776`, :issue:`6777`, :pull:`6773`)
Comment on lines 183 to 184
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entry will need modifying too since it implies that the Python pin is still there.


#. `@trexfeathers`_ provided tentative compatibility with Python 3.14 by fixing
:class:`~iris.coords.DimCoord` ``deepcopy`` behaviour. Note that CI coverage
for Python 3.14 is not yet possible due to problems in some fringe
dependencies, but the relevant tests have been shown to pass in :pull:`6816`.
(:issue:`6775`, :pull:`6817`)


📚 Documentation
================
Expand Down
8 changes: 6 additions & 2 deletions docs/src/whatsnew/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
What's New in Iris
------------------

.. include:: 3.14.rst
.. Commented out temporarily because Sphinx can't cope with a file that includes
labels being referenced twice.
include:: 3.14.rst
toctree::
:maxdepth: 1
:hidden:

.. toctree::
:maxdepth: 1
:hidden:

3.14.rst
3.13.rst
Expand Down
8 changes: 7 additions & 1 deletion lib/iris/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,13 @@ def __deepcopy__(self, memo): # numpydoc ignore=SS02
Used if copy.deepcopy is called on a coordinate.

"""
new_coord = copy.deepcopy(super(), memo)
# Inspired by matplotlib#30198.
# Replicates the default copy behaviour, which can then be modified below.
cls = self.__class__
memo[id(self)] = new_coord = cls.__new__(cls)
for key, val in self.__dict__.items():
setattr(new_coord, key, copy.deepcopy(val, memo))

# Ensure points and bounds arrays are read-only.
new_coord._values_dm.data.flags.writeable = False
if new_coord._bounds_dm is not None:
Expand Down
Loading