Skip to content

Commit 744cfc2

Browse files
committed
Fixed reparation
1 parent 208e1fc commit 744cfc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/dataframes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def repair_dropped_frames(df: pd.DataFrame, time_step: float) -> pd.DataFrame:
4444
# If the next timestamp exceeds the expected time step
4545
if next_timestamp - timestamp > time_step:
4646
# Estimate the number of missing frames
47-
missing_timestamps_count = int((next_timestamp - timestamp) / time_step) - 1
47+
missing_timestamps_count = round((next_timestamp - timestamp) / time_step) - 1
4848
# Estimate a time interval between them (will be very similar to the input time_step
4949
interval = (next_timestamp - timestamp) / (missing_timestamps_count + 1)
5050
# Generate the missing lines

0 commit comments

Comments
 (0)