From 4b29e3c411eb2f776287496f79476a1dedbf9ecd Mon Sep 17 00:00:00 2001 From: Thomas Vergauwen Date: Tue, 17 Feb 2026 09:28:24 +0100 Subject: [PATCH 1/2] remove the floor and ceil in synchronizing timeseries in buddy check --- src/metobs_toolkit/qc_collection/buddy_check.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/metobs_toolkit/qc_collection/buddy_check.py b/src/metobs_toolkit/qc_collection/buddy_check.py index 3f3d52c2..92864a23 100644 --- a/src/metobs_toolkit/qc_collection/buddy_check.py +++ b/src/metobs_toolkit/qc_collection/buddy_check.py @@ -30,8 +30,8 @@ def synchronize_series( * freq: the highest frequency present in the input series - * origin: the earliest timestamp found, rounded down by the freq - * closing: the latest timestamp found, rounded up by the freq. + * origin: the earliest timestamp found across all input series + * closing: the latest timestamp found across all input series. Parameters ---------- @@ -55,8 +55,8 @@ def synchronize_series( trg_freq = min(frequencies) # find origin and closing timestamp (earliest/latest) - origin = min([s.index.min() for s in series_list]).floor(trg_freq) - closing = max([s.index.max() for s in series_list]).ceil(trg_freq) + origin = min([s.index.min() for s in series_list]) + closing = max([s.index.max() for s in series_list]) # Create target datetime axes target_dt = pd.date_range(start=origin, end=closing, freq=trg_freq) From d25cc6cea6be66e9cf3aca0f6f94f36d5f96248f Mon Sep 17 00:00:00 2001 From: Thomas Vergauwen Date: Tue, 17 Feb 2026 09:30:35 +0100 Subject: [PATCH 2/2] minor version bump --- pyproject.toml | 2 +- src/metobs_toolkit/settings_collection/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4e40360b..59356bd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = ["poetry-core"] [project] name = "MetObs-toolkit" -version = "1.0.0" +version = "1.0.1" license = "LICENSE" authors = [{name = "Thomas Vergauwen", email = "thomas.vergauwen@ugent.be"}] description = "A Meteorological observations toolkit for scientists" diff --git a/src/metobs_toolkit/settings_collection/version.py b/src/metobs_toolkit/settings_collection/version.py index 5becc17c..5c4105cd 100644 --- a/src/metobs_toolkit/settings_collection/version.py +++ b/src/metobs_toolkit/settings_collection/version.py @@ -1 +1 @@ -__version__ = "1.0.0" +__version__ = "1.0.1"