Skip to content

Commit

Permalink
Uniformed uuid check in both dwell filters
Browse files Browse the repository at this point in the history
  • Loading branch information
TeachMeTW committed Nov 5, 2024
1 parent 143f0d6 commit 2c8adf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def segment_into_trips(self, timeseries, time_query):
# Timer for fetching filtered location points
with ect.Timer() as t_get_filtered_points_pre_ts_diff_df:
filtered_points_pre_ts_diff_df = timeseries.get_data_df("background/filtered_location", time_query)
user_id = self.filtered_pointsdf.iloc[0]['user_id'] # Assuming user_id is available like this
user_id = self.filtered_pointsdf.iloc[0]['user_id'] if not self.filtered_points_df.empty else None
esds.store_pipeline_time(user_id, ecwp.PipelineStages.TRIP_SEGMENTATION.name + "/segment_into_trips_time/get_filtered_location", time.time(), t_get_filtered_points_pre_ts_diff_df.elapsed)

# Timer for filtering out bogus points
Expand Down

0 comments on commit 2c8adf1

Please sign in to comment.