soft-matter / trackpy

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

how to relink trajectories from an existing trajectory dataframe #676

Open alexlib opened 2 years ago

alexlib commented 2 years ago

Sometimes I get multiple broken trajectories and would like to run the linking again over the same data, preserving the existing particles and connecting previous trajectories into newer, longer trajectories.

Thanks for the great software.

b-grimaud commented 2 years ago

Have you tried tweaking the memory and search_range parameters of tp.link in a way that could produce long enough trajectories ?

alexlib commented 2 years ago

Yes of course. Yet there are sometimes cases which are not connected and a second iteration might help. I just cannot figure out the right way to connect the existing trajectories. I could do it in manually by renumbering particles probably but I guess there is a better way.