dgs.utils.track.Tracks.add

Tracks.add(tracks: dict[int, State], new: list[State]) list[int][source]

Given tracks with existing Track-IDs update those and create new Tracks for States without Track-IDs. Additionally, mark Track-IDs that are not in either of the inputs as unseen and therefore as inactive for one more step.

Returns:

The Track-IDs of the new_tracks in the same order as provided.