fix
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user