Skip to content

Commit 165354e

Browse files
author
FelixAbrahamsson
committed
fix: frame index sync properly working
1 parent fb77619 commit 165354e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kmm/positions/sync_frame_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ def sync_frame_index(positions: Positions, header: Header, adjustment: PositionA
2121
if header.car_direction == CarDirection.A:
2222
dataframe = (
2323
positions.dataframe
24-
.iloc[adjustment:]
24+
.iloc[:-adjustment]
2525
.assign(frame_index=frame_index[adjustment:])
2626
)
2727
elif header.car_direction == CarDirection.B:
2828
dataframe = (
2929
positions.dataframe
30-
.iloc[:-adjustment]
30+
.iloc[adjustment:]
3131
.assign(frame_index=frame_index[:-adjustment])
3232
)
3333
else:

0 commit comments

Comments
 (0)