You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run_points_data (list of dict): A list of run data points.
223
-
start_time (int): The start time for adjusting timestamps. Note that the unit of the start_time is millsecond
223
+
start_time (int): The start time for adjusting timestamps. Note that the unit of the start_time is millisecond
224
224
225
225
Returns:
226
226
gpx_data (str): GPX data in string format.
@@ -283,9 +283,9 @@ def find_nearest_hr(
283
283
heart_rate_data (list of dict): A list of heart rate data points, where each point is a dictionary
284
284
containing at least "timestamp" and "beatsPerMinute" keys.
285
285
target_time (float): The target timestamp for which to find the nearest heart rate data point. Please Note that the unit of target_time is decisecond(分秒),
286
-
means 1/10 of a second ,this is very unsual!! so when we convert a target_time to second we need to divide by 10, and when we convert a target time to millsecond
286
+
means 1/10 of a second ,this is very unusual!! so when we convert a target_time to second we need to divide by 10, and when we convert a target time to millsecond
287
287
we need to times 100.
288
-
start_time (float): The reference start time. the unit of start_time is normal millsecond timestamp
288
+
start_time (float): The reference start time. the unit of start_time is normal millisecond timestamp
289
289
threshold (float, optional): The maximum allowed time difference to consider a data point as the nearest.
290
290
Default is HR_THRESHOLD, the unit is decisecond(分秒)
291
291
@@ -298,7 +298,7 @@ def find_nearest_hr(
298
298
iftarget_time>TIMESTAMP_THRESHOLD_IN_DECISECOND:
299
299
target_time= (
300
300
target_time*100-start_time
301
-
) /100# note that the unit of target_time is decisecond(分秒) and the unit of start_time is normal millsecond
301
+
) /100# note that the unit of target_time is decisecond and the unit of start_time is normal millisecond
0 commit comments