We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 208e1fc commit 744cfc2Copy full SHA for 744cfc2
PostProcessing/dataframes.py
@@ -44,7 +44,7 @@ def repair_dropped_frames(df: pd.DataFrame, time_step: float) -> pd.DataFrame:
44
# If the next timestamp exceeds the expected time step
45
if next_timestamp - timestamp > time_step:
46
# Estimate the number of missing frames
47
- missing_timestamps_count = int((next_timestamp - timestamp) / time_step) - 1
+ missing_timestamps_count = round((next_timestamp - timestamp) / time_step) - 1
48
# Estimate a time interval between them (will be very similar to the input time_step
49
interval = (next_timestamp - timestamp) / (missing_timestamps_count + 1)
50
# Generate the missing lines
0 commit comments