Skip to main content

Python-based Processing Tool for Active Matter Experiments

Project description

Pipeline_image Pipeline_image

Python PyPI version Docs Status Coverage Status Linting Status PyPI - License

Website | Documentation | Paper | Video Tutorial (TBD) | Colab Notebook

AMPy is a baseline library built upon OpenCV and NumPy to easily process experimental video data for active matter and disordered systems. Our library turns the processing of experiment recordings into a cakewalk, considerably accelerating extraction of system dynamics.

Overview

The library is comprised of 4 components: processing.py, statistic2d.py, statistic3d.py, and animation.py.

  • processing.py handles the initial processing of experimental video recordings and tracks the ArUco markers placed on the robots' upper surfaces.

  • statistics2d.py extracts various two-dimensional statistical measures from obtained kinematics (such as Cartesian displacement or order parameters).

  • statistics3d.py evaluates position, orientation, and velocity correlation maps for the entire platform.

  • animation.py generates .gif with the simultaneous evolution of parameters from statistics2d.py along with the input video.

If you want a brief introduction into library capabilities, we prepared a Colab tutorial for that occasion.

Installation

AMPy is available at the Python Package Index:

$ pip install ampy

Preparing markers

For users' convenience, we provide the .ipynb notebook allowing to generate ArUco- and AprilTag-based markers for tracking of their own robots.

Contact us

If you have some questions about the code, you are welcome to open an issue, we will respond to that as soon as possible. Contributions towards extension of AMPy functionality are more than welcome!

License

Established code released as open-source software under the GPLv3 license.

Citation

@misc{
      dmitriev2023swarmobot,
      title={Swarmodroid 1.0: A Modular Bristle-Bot Platform for Robotic Active Matter}, 
      author={Alexey A. Dmitriev and Alina D. Rozenblit and Vadim A. Porvatov and
              Mikhail K. Buzakov and Anastasia A. Molodtsova and Daria V. Sennikova and
              Vyacheslav A. Smirnov and Oleg I. Burmistrov and Ekaterina M. Puhtina and
              Nikita A. Olekhno},
      year={2023},
      eprint={2305.13510},
      archivePrefix={arXiv},
      primaryClass={cond-mat.soft}
}

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

ampy-0.1.3.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

ampy-0.1.3-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file ampy-0.1.3.tar.gz.

File metadata

  • Download URL: ampy-0.1.3.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ampy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bab7ec54c9157f1c71aa300d323cccc21291786aac5bdd368997a19c57c9ad4a
MD5 6373170356be908895a724e5606b5d0c
BLAKE2b-256 bcd730192e1f751f7c28f498529f0a42e21c54aa46395458dc5dd93c57ff1a48

See more details on using hashes here.

File details

Details for the file ampy-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ampy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ampy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd1b49e3f5a8db6d630fa71ae250ef75931377705cef7aaa79b882c9e24adf6
MD5 9df5b30793fc6bca62e73f70f94bf285
BLAKE2b-256 0de88ec1a419b6d5af0553229ac4c3c631c6f61d813b6bb0e5e64915d59c13ec

See more details on using hashes here.

Supported by

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