From 381ed887d46d32ae981c530974cb4aec375ea23a Mon Sep 17 00:00:00 2001 From: Bart Schilperoort Date: Mon, 26 Jan 2026 11:23:50 +0100 Subject: [PATCH 1/4] Copy lon values before modifying in-place --- src/xarray_regrid/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xarray_regrid/utils.py b/src/xarray_regrid/utils.py index 88bbab5..6979f84 100644 --- a/src/xarray_regrid/utils.py +++ b/src/xarray_regrid/utils.py @@ -379,7 +379,7 @@ def format_lon( left_pad = int(np.ceil(np.max([left_pad, 0]))) right_pad = int(np.ceil(np.max([right_pad, 0]))) obj = obj.pad({lon_coord: (left_pad, right_pad)}, mode="wrap", keep_attrs=True) - lon_vals = obj.coords[lon_coord].values + lon_vals = obj.coords[lon_coord].values.copy() if left_pad: lon_vals[:left_pad] = source_lon.values[-left_pad:] - 360 if right_pad: From 10f388e783218f53bd5fb7c00f5289fc3baf0d23 Mon Sep 17 00:00:00 2001 From: Bart Schilperoort Date: Mon, 15 Sep 2025 10:33:43 +0200 Subject: [PATCH 2/4] Update changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20ed71e..c7a7a53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/). +## 0.4.2 (2025-09-15) + +New contributors: + - [@tdickinson29](https://github.com/tdickinson29) + +Fixed: + - When validating input with a source dataset, use the passed `time_dim` argument ([#62](https://github.com/xarray-contrib/xarray-regrid/pull/62)). + ## 0.4.1 (2025-04-08) Fixed: From 5058ba27a27f3daffe4ff6409d21ee80b359a062 Mon Sep 17 00:00:00 2001 From: Bart Schilperoort Date: Mon, 15 Sep 2025 10:35:11 +0200 Subject: [PATCH 3/4] Bump version number --- src/xarray_regrid/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xarray_regrid/__init__.py b/src/xarray_regrid/__init__.py index 7b565fc..0dcaaec 100644 --- a/src/xarray_regrid/__init__.py +++ b/src/xarray_regrid/__init__.py @@ -9,4 +9,4 @@ "methods", ] -__version__ = "0.4.1" +__version__ = "0.4.2" From 4b09c9af081c202335528eec90afea78996f7652 Mon Sep 17 00:00:00 2001 From: Bart Schilperoort Date: Wed, 28 Jan 2026 11:03:52 +0100 Subject: [PATCH 4/4] Update changelog, release date --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7a7a53..149c3a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,14 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/). -## 0.4.2 (2025-09-15) +## 0.4.2 (2026-01-28) New contributors: - [@tdickinson29](https://github.com/tdickinson29) Fixed: - When validating input with a source dataset, use the passed `time_dim` argument ([#62](https://github.com/xarray-contrib/xarray-regrid/pull/62)). - + - Fixed issue with lon values being immutable, thanks @shenyulu ([#65](https://github.com/xarray-contrib/xarray-regrid/issues/65), [#66](https://github.com/xarray-contrib/xarray-regrid/pull/66)). + ## 0.4.1 (2025-04-08) Fixed: