From 555ee6d0f4b680863a2f8928ce0d2bc28e7e85e5 Mon Sep 17 00:00:00 2001 From: Christof Date: Wed, 28 Jun 2023 12:03:32 +0200 Subject: [PATCH] ENH: remove as_staypoints calls from location_identification --- trackintel/analysis/location_identification.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/trackintel/analysis/location_identification.py b/trackintel/analysis/location_identification.py index 6682e4ae..e4694912 100644 --- a/trackintel/analysis/location_identification.py +++ b/trackintel/analysis/location_identification.py @@ -48,9 +48,6 @@ def location_identifier(staypoints, method="FREQ", pre_filter=True, **pre_filter >>> from ti.analysis.location_identification import location_identifier >>> location_identifier(staypoints, pre_filter=True, method="FREQ") """ - # assert validity of staypoints - staypoints.as_staypoints - sp = staypoints.copy() if "location_id" not in sp.columns: raise KeyError( @@ -125,9 +122,6 @@ def pre_filter_locations( >>> mask = pre_filter_locations(staypoints) >>> staypoints = staypoints[mask] """ - # assert validity of staypoints - staypoints.as_staypoints - sp = staypoints.copy() if isinstance(thresh_loc_time, str): thresh_loc_time = pd.to_timedelta(thresh_loc_time)