From 15bb3862e5d84476ecad0deb6e3b2f4fe39978f4 Mon Sep 17 00:00:00 2001 From: Huite Bootsma Date: Thu, 5 Sep 2024 20:41:03 +0200 Subject: [PATCH] Update changelog --- docs/changelog.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index c364491d..dec109e0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,25 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog`_, and this project adheres to `Semantic Versioning`_. +Unreleased +---------- + +Fixed +~~~~~ + +- Release 0.12.0 changed the return type of the face node connectivity of + :attr:`xugrid.Ugrid2d.voronoi_topology` from a `scipy.sparse.coo_matrix` to + an ordinary `np.array` of integers (and similarly for internal voronoi + tesselations); this dense array had fill (hard-coded) values of -1, + potentially differing from the grid's fill value. This lead to a number of + errors for methods relying on voronoi tesselations (such as contour plots) + if the fill value of the grid was not -1. +- Internally, a ``FILL_VALUE = -1`` is now used everywhere in connectivity + arrays, and fill values are no longer passed for internal methods; a value of + -1 is always assumed. When converting the grid (back) to a dataset with + :meth:`xugrid.Ugrid1d.to_dataset` or :meth:`xugrid.Ugrid2d.to_dataset`, the + fill value is set back to its original value. + [0.12.0] 2024-09-03 -------------------