Skip to main content

Python Tool for APT Mass Statistics

Project description

APT Stats Generic badge Generic badge Generic badge

A python package to calculate the probability of ions in Atomic Probe Tomography results and correlate with DA values.

Global purpose

The objective of this package is to give statistical probability of having a given ion in an Atomic Probe Tomography mass diagram based on both the abundance of each element in the material and the natural abundance. The package provide selecting and displaying tools in order to help the user.

Lastest version

A new "impurities", keyword has been added to the material definition. This way, impurities can be introduced in the material calculation :


Therefore, during calculation of the whole possibilities or for a specific mass to charge ratio, impurities can be displayed. Warning has to be made that the probability levels for impurities are normalized to 1 and are not acknowledgeable as a real probability as no probability value is imputed.



  • matplotlib
  • numpy
  • mendeleev > 0.4
  • tableprint


pip install apt-stats


Defining the material

import APT_stats as apt
#Defining a 6061 aluminum alloy using weight percentages

Combination calculation

#Setting the maxiumum multiple ions combinations and lowest acceptable probability
#Adding charges to the calculation, considering three charges as maximum possibility

Navigating through the results

#Saving results
#Global displaying without impurities

Console screenshot

#Display probabilities for DA=120

Console screenshot

#Graphical display arround 20<DA<30

Graphical display

Warning !

This package is highly experimental. No warranty is given. The user should be using it as its own risk.

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

APT_stats-0.0.4.tar.gz (4.5 kB view hashes)

Uploaded source

Built Distribution

APT_stats-0.0.4-py3-none-any.whl (17.5 kB view hashes)

Uploaded py3

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