Skip to content

Commit 9176b87

Browse files
author
FelixAbrahamsson
committed
feature: add car direction to dataframe
1 parent c1bff9f commit 9176b87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kmm/positions/sync_frame_index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def sync_frame_index(positions: Positions, header: Header, adjustment: PositionA
3333
else:
3434
raise ValueError(header.car_direction)
3535

36-
return positions.replace(dataframe=dataframe)
36+
return positions.replace(
37+
dataframe=dataframe.assign(car_direction=header.car_direction)
38+
)
3739

3840

3941
def validate_meter_increments(positions):

0 commit comments

Comments
 (0)