From 013e644bc05153673b3f8a88a08d89ff4ef0ccf3 Mon Sep 17 00:00:00 2001 From: David Bold Date: Wed, 24 Sep 2025 23:35:09 +0200 Subject: [PATCH 1/2] Fix comparison to geometry --- xbout/load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbout/load.py b/xbout/load.py index 1d9d4d94..6a8effd2 100644 --- a/xbout/load.py +++ b/xbout/load.py @@ -242,7 +242,7 @@ def attrs_remove_section(obj, section): # If geometry was set, apply geometry again if geometry is not None: - if "geometry" != ds.attrs.get("geometry", None): + if geometry != ds.attrs.get("geometry", None): warn( f'open_boutdataset() called with geometry="{geometry}", but we are ' f"reloading a Dataset that was saved after being loaded with " From c81957f7770f83da87a54384f232f7e95497bfaf Mon Sep 17 00:00:00 2001 From: dschwoerer Date: Wed, 24 Sep 2025 21:37:23 +0000 Subject: [PATCH 2/2] Apply black formatting --- xbout/xarraybackend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbout/xarraybackend.py b/xbout/xarraybackend.py index 38f4d65c..6a9644c5 100644 --- a/xbout/xarraybackend.py +++ b/xbout/xarraybackend.py @@ -1,6 +1,6 @@ """License: - Distributed under the OSI-approved Apache License, Version 2.0. See - accompanying file Copyright.txt for details. +Distributed under the OSI-approved Apache License, Version 2.0. See +accompanying file Copyright.txt for details. """ from __future__ import annotations