From 1201e3d67f202143305e5c2cf1efe0d89e9cc14e Mon Sep 17 00:00:00 2001 From: Arijit Samal <68030078+1-ARIjitS@users.noreply.github.com> Date: Sun, 11 Aug 2024 22:14:50 +0200 Subject: [PATCH 1/3] added correct fucntion for distance in datespan.py changed the MEOS method called for calculating the distance between two datespans. Function updated --- pymeos/collections/time/datespan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymeos/collections/time/datespan.py b/pymeos/collections/time/datespan.py index 1639b6f9..da04ffe5 100644 --- a/pymeos/collections/time/datespan.py +++ b/pymeos/collections/time/datespan.py @@ -471,7 +471,7 @@ def distance(self, other: TimeDate) -> timedelta: return self.distance(other.to_spanset()) elif isinstance(other, DateSpan): return timedelta( - days=distance_datespanset_datespan(self._inner, other._inner) + days=distance_datespan_datespan(self._inner, other._inner) ) elif isinstance(other, DateSpanSet): return timedelta( From fb2a7aa419abc6bd3da3b706f9687fbd10869465 Mon Sep 17 00:00:00 2001 From: Diviloper Date: Wed, 13 Aug 2025 20:17:17 +0200 Subject: [PATCH 2/3] Format --- pymeos/collections/time/datespan.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pymeos/collections/time/datespan.py b/pymeos/collections/time/datespan.py index da04ffe5..5af0d47e 100644 --- a/pymeos/collections/time/datespan.py +++ b/pymeos/collections/time/datespan.py @@ -470,9 +470,7 @@ def distance(self, other: TimeDate) -> timedelta: elif isinstance(other, DateSet): return self.distance(other.to_spanset()) elif isinstance(other, DateSpan): - return timedelta( - days=distance_datespan_datespan(self._inner, other._inner) - ) + return timedelta(days=distance_datespan_datespan(self._inner, other._inner)) elif isinstance(other, DateSpanSet): return timedelta( days=distance_datespanset_datespan(self._inner, other._inner) From c3eac0fd0d23b87ca29476ccd3d4f95552556a49 Mon Sep 17 00:00:00 2001 From: Diviloper Date: Wed, 13 Aug 2025 20:29:21 +0200 Subject: [PATCH 3/3] Update postgres version for linux in test workflow --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15fe6ee3..b7374d7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,7 +38,7 @@ jobs: uses: awalsh128/cache-apt-pkgs-action@latest if: runner.os == 'Linux' with: - packages: build-essential cmake postgresql-server-dev-14 libproj-dev libjson-c-dev libgsl-dev libgeos-dev + packages: build-essential cmake postgresql-server-dev-16 libproj-dev libjson-c-dev libgsl-dev libgeos-dev version: 1.0 - name: Update brew