Skip to content

Commit

Permalink
refactor: uuid to ID
Browse files Browse the repository at this point in the history
in long_tracker
  • Loading branch information
cpaniaguam committed Dec 9, 2024
1 parent a0eb8b1 commit 7edb6b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tracker/long_tracker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Trajectories are built in two steps:
- "orientation"
- "perimeter"
- "mask": 2D array of booleans
- "uuid": unique identifier
- "ID": unique identifier
- "passtime": A timestamp for the floe
- "psi": the psi-s curve for the floe
- `condition_thresholds`: 3-tuple of thresholds (each a named tuple) for deciding whether to match floe `i` from day `k` to floe j from day `k+1`
Expand Down Expand Up @@ -62,9 +62,10 @@ function long_tracker(props::Vector{DataFrame}, condition_thresholds, mc_thresho
end
end
IceFloeTracker.reset_id!(trajectories)
trajectories.ID = trajectories.uuid
# list the uuid in the leftmost column
cols = [col for col in names(trajectories) if col != "uuid"]
return trajectories[!, ["uuid", cols...]]
cols = [col for col in names(trajectories) if col ["ID", "uuid"]]
return trajectories[!, ["ID", cols...]]
end

"""
Expand Down

0 comments on commit 7edb6b6

Please sign in to comment.