A Python library that integrates all the tools necessary to perform research using Positron Emission Particle Tracking (PEPT). The library includes algorithms for the location, identification and tracking of particles, in addition to tools for visualisation and analysis, and utilities allowing the realistic simulation of PEPT data.
Positron Emission Particle Tracking
PEPT is a technique developed at the University of Birmingham which allows the non-invasive, three-dimensional tracking of one or more ‘tracer’ particles through particulate, fluid or multiphase systems. The technique allows particle or fluid motion to be tracked with sub-millimetre accuracy and sub-millisecond temporal resolution and, due to its use of highly-penetrating 511keV gamma rays, can be used to probe the internal dynamics of even large, dense, optically opaque systems - making it ideal for industrial as well as scientific applications.
Getting Started
These instructions will help you get started PEPT data analysis.
Prerequisites
This package supports Python 3. You also need to have NumPy
and Cython
on your system in order to install it.
Installation
You can install pept
from PyPI:
Or you can install the latest version from the GitHub repository:
Example usage
You can download data samples from the UoB Positron Imaging Centre’s Repository:
A minimal analysis script using the pept.tracking.peptml
subpackage:
A more in-depth tutorial is available on Google Colab.
Full documentation is available here.
Performance
Significant effort has been put into making the algorithms in this package as
fast as possible. The most compute-intensive parts have been implemented in
C
and parallelised, where possible, using joblib
. For example, using the peptml
subpackage, analysing 1,000,000 LoRs on the author’s machine (mid 2012 MacBook Pro)
takes ~26 s (with another 12 s to read in the data). This efficiency is largely
due to the availabiliy of a great high-performance implementation of the
HDBSCAN clustering algorithm.
Help and Support
We recommend you check out our tutorials. If your issue is not suitably resolved there, please check the issues page on our GitHub. Finally, if no solution is available there, feel free to open an issue; the authors will attempt to respond in a reasonably timely fashion.
Contributing
We welcome contributions in any form! Assistance with documentation, particularly expanding tutorials, is always welcome. To contribute please fork the project, make your changes and submit a pull request. We will do our best to work through any issues with you and get your code merged into the main branch.
Licensing
The pept
package is GNU v3.0 licensed.