Skip to content

Commit

Permalink
ENH: remove as_staypoints calls from location_identification (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
bifbof authored Jun 29, 2023
1 parent c9b3b06 commit 117fde2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions trackintel/analysis/location_identification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 117fde2

Please sign in to comment.