Skip to main content

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 :

impurities=('Ar','Ne')

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.

Installation

Dependencies

  • matplotlib
  • numpy
  • mendeleev > 0.4
  • tableprint

PIP

pip install apt-stats

Usage

Defining the material

import APT_stats as apt
#Defining a 6061 aluminum alloy using weight percentages
al_6061=apt.material({'Mg':0.0085,
                      'Si':0.0048,
                      'Fe':0.0005,
                      'Cu':0.003,
                      'Cr':0.003,
                      'Mn':0.0008,
                      'Zn':0.0005,
                      'Al':0.9789},impurities=('Ar',),wt=True)

Combination calculation

#Setting the maxiumum multiple ions combinations and lowest acceptable probability
depth=3
low=1E-7
#Calculation
res=apt.calc(al_6061,depth,low)
#Adding charges to the calculation, considering three charges as maximum possibility
res=apt.charge_calculation(res,(1,3))

Navigating through the results

#Saving results
apt.save_results(res,'res.txt')
#Global displaying without impurities
apt.disp_results(res,imp=False)

Console screenshot

#Display probabilities for DA=120
apt.disp_select(res,120)

Console screenshot

#Graphical display arround 20<DA<30
apt.plot_results(res,(20,30))

Graphical display

Warning !

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

Metadata

Release files for APT-stats 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for APT-stats 0.0.4
File Size Uploaded
APT_stats-0.0.4.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for APT-stats 0.0.4
File Interpreter ABI Platform
APT_stats-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 22.0 kB

Release files / APT_stats-0.0.4.tar.gz

Download URL APT_stats-0.0.4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
07428349f2dc2c5fe38e05afb421fe59a0a2aa454cb28100986fa5c79b9e1346
BLAKE2b-256 checksum
How to use checksums
4d2a55074fc8c6b3332d4d954f83449be3afa8899dbeff457a533db741a76b89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

Release files / APT_stats-0.0.4-py3-none-any.whl

Download URL APT_stats-0.0.4-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7419c4593d088dfa7b18fb9312f00d5650216480464a88770ea732d703238a5f
BLAKE2b-256 checksum
How to use checksums
0d091c7f1f49f564ffd3e3facc9d6567dd1e6b9b88442bd70ca17d517d8d517e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page