Skip to main content

Python package for the study of particle dynamics from 2D tracks

Project description

PyPI Platform Documentation Status Build & Test codecov DOI License Code style: black

DynTrack

Python package for the study of particle dynamics from 2D tracks

Installation

pip install -U dyntrack

Usage

import dyntrack as dt

DT = dt.ut.load_data("tracks.csv","Position X","Position Y","Parent","Time","background.tiff")

dt.tl.vector_field(DT)
dt.pl.vector_field(DT)

dt.tl.FTLE(DT, 20000,5)
dt.pl.FTLE(DT)

dt.tl.fit_ppt(DT,seed=1)
dt.pl.fit_ppt(DT)

Workflow

Source build and run issues with windows

If missing DLL errors occurs while running, or gcc is not available while building from source please install MinGW-w64:

choco install mingw

Citations and used works

Vector field building

The function dyntrack.tl.vector_field uses vfkm to generate vector fields (see license), please cite the related study if you use it:

Ferreira, N., Klosowski, J. T., Scheidegger, C. & Silva, C.
Vector Field k-Means: Clustering Trajectories by Fitting Multiple Vector Fields.
Comput. Graph. Forum 32, 201–210 (2012).

FTLE scalar field generation

Code from dyntrack.tl.FTLE have been adapted and optimized from Richard Galvez's notebook.

Principal tree fitting with SimplePPT

Code from dyntrack.tl.fit_ppt uses SimplePPT algorithm to fit principal trees on each frames. SimplePPT has been described in the following paper:

Mao et al. (2015), SimplePPT: A simple principal tree algorithm
SIAM International Conference on Data Mining.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dyntrack-1.1.3.tar.gz (2.9 MB view details)

Uploaded Source

File details

Details for the file dyntrack-1.1.3.tar.gz.

File metadata

  • Download URL: dyntrack-1.1.3.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for dyntrack-1.1.3.tar.gz
Algorithm Hash digest
SHA256 9ce0afb8348d2ff6871c56fa35e1b732158b65e219b30447ddf56471d5f9c735
MD5 cf7335d41b7909b73ccd154111e2d4cc
BLAKE2b-256 c1ba7ffcd627bcf88d01cf0c69bcf626dcc026139bdc66ec1c6df72f43e4ffc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page