soft-matter / trackpy

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

Refactor function locate via helper class ParticlesLocator #628

Closed ivanovmg closed 1 year ago

ivanovmg commented 4 years ago

Refactoring

Previously the function trackpy.feature.locate contained a lot of procedures, which made it difficult to comprehend.

The helper class ParticlesLocator was extracted to improve code readability.

The class ParticlesLocator allows the following: