soft-matter / trackpy

Python particle tracking toolkit
http://soft-matter.github.io/trackpy
Other
445 stars 131 forks source link

ENH: Add Linker.SORT_TRAJECTORIES option #657

Closed nkeim closed 3 years ago

nkeim commented 3 years ago

I thought I'd try coding up a solution to #601, to see if it's worthwhile. This adds a (deprecated) parameter that can be set like the existing MAX_SUB_NET_SIZE etc.

In the spirit of YAGNI, I don't think this should be merged for v0.5, since my main concern in #601 was for novice users tracking small data sets interactively, and this solution is not really for novices. But I'm glad I did it to refresh my memory of how particle IDs are assigned. And if the issue in #601 ever causes someone serious grief, we can point them to this branch and consider merging it.