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] 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(