Skip to content

Commit 629b56f

Browse files
1-ARIjitSDiviloper
authored andcommitted
added correct fucntion for distance in datespan.py
changed the MEOS method called for calculating the distance between two datespans. Function updated
1 parent ac82f09 commit 629b56f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pymeos/collections/time/datespan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def distance(self, other: TimeDate) -> timedelta:
471471
return self.distance(other.to_spanset())
472472
elif isinstance(other, DateSpan):
473473
return timedelta(
474-
days=distance_datespanset_datespan(self._inner, other._inner)
474+
days=distance_datespan_datespan(self._inner, other._inner)
475475
)
476476
elif isinstance(other, DateSpanSet):
477477
return timedelta(

0 commit comments

Comments
 (0)