Private
Public Access
1
0
This commit is contained in:
2024-09-30 09:00:30 +02:00
parent f21881828c
commit bb0d07df72
4 changed files with 15 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ class InvalidTrajectoryError(Exception):
def time_in_path(df, p, maxmin='max', getall=False, name='unknown', logfile=None):
if df.empty: # pragma: no cover
return 0
return 0, 0
def f(x):
return coordinate_in_path(x['latitude'], x['longitude'], p)
@@ -55,7 +55,7 @@ def time_in_path(df, p, maxmin='max', getall=False, name='unknown', logfile=None
raise InvalidTrajectoryError(
"Trajectory doesn't go through path") # pragma: no cover
return 0 # pragma: no cover
return 0, 0 # pragma: no cover
def coursetime_first(data, paths, polygons=[], logfile=None):