Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments in mobmat2traj are reversed on the definition of status #282

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/forest/jasmine/mobmat2traj.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,8 @@ def imp_to_traj(
start_idx = end_idx
end_idx += 1

# If the trajectory is a flight, add it to the tidy_trajectory
# If the trajectory is multiple pauses,
# add it to the tidy_trajectory
if temp[start, 0] == 2:
tidy_trajectory.append(
[
Expand All @@ -1262,7 +1263,8 @@ def imp_to_traj(
*temp[end, 4:7],
]
)
# If the trajectory is a pause, add it to the tidy_trajectory
# If the trajectory is a flight in one row,
# add it to the tidy_trajectory
elif end == start:
tidy_trajectory.append(
[
Expand Down