Skip to content

Commit d3b3f3d

Browse files
committed
feat: sequences are now in direction of travel
1 parent 508edf8 commit d3b3f3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mapswipe_workers/mapswipe_workers/utils/spatial_sampling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,7 @@ def spatial_sampling(df, interval_length):
146146
[sampled_sequence_df, filtered_sorted_sub_df], axis=0
147147
)
148148

149+
# reverse order such that sequence are in direction of travel
150+
sampled_sequence_df = sampled_sequence_df.iloc[::-1]
151+
149152
return sampled_sequence_df

0 commit comments

Comments
 (0)