Skip to main content

A Python package for atom probe control and data calibration.

Project description

PyCCAPT

DOI Documentation Status

PyCCAPT is a modular, FAIR-oriented Python package for atom probe tomography (APT) instrument control, data calibration, and reconstruction workflows.

It provides:

  • experiment control and acquisition for APT hardware
  • calibration workflows such as t0 and flight-path estimation, ROI selection, voltage and bowl correction, and ranging
  • reconstruction and visualization tooling
  • interoperable data export for HDF5-based workflows and common APT exchange formats
PyCCAPT logo

Project Scope

PyCCAPT was developed and validated on the OXCART atom probe platform and is designed to be adaptable to other APT systems through device-specific modules. Current integrations include detector backends such as Surface Concept and RoentDek, together with modular support for common laboratory hardware.

OXCART atom probe

Installation

PyCCAPT requires Python >=3.9.

Recommended Quick Start (Conda)

For most users, this is the best way to install PyCCAPT:

conda create -n pyccapt python=3.11
conda activate pyccapt
python -m pip install --upgrade pip
pip install "pyccapt[full]"

If you want to work from this repository instead of PyPI:

git clone https://github.com/mmonajem/pyccapt.git
cd pyccapt
conda activate pyccapt
pip install -e ".[full]"

Predefined conda environment files are also included in the repo:

conda env create -f environment.yml
conda env create -f environment.full.yml

Other Installation Options

  1. Install from PyPI:
pip install pyccapt

Optional dependency groups:

pip install "pyccapt[calibration]"
pip install "pyccapt[control]"
pip install "pyccapt[full]"

Module-specific editable installs:

pip install -e ".[control]"
pip install -e ".[calibration]"

Running PyCCAPT

Start the control application:

pyccapt

Fallback entrypoint:

python -m pyccapt.control

Run tests:

pytest -q --run-calibration
pytest -q --run-control
pytest -q

Run calibration tutorials:

jupyter lab

Then open notebooks under pyccapt/calibration/tutorials.

Configuration

Control runtime configuration is stored in pyccapt/config.toml.

Control GUI electrode labels are stored in pyccapt/control/electrode.toml:

[electrodes]
names = [
  "NiC1", # Nickel electrode
  "CuC1", # Copper electrode
]

For device toggles, prefer enabled and disabled. Legacy on and off values still work.

Control Highlights

Main GUI

The control stack includes the main acquisition GUI together with dedicated windows for gates, pumps and vacuum, cameras, laser, stage control, visualization, and baking. Startup reports unavailable configured ports clearly, GUI error boxes wrap long messages, and Access Override now asks for confirmation before allowing a run to proceed with missing enabled devices.

Vacuum logs are written under pyccapt/files/logs/vacuum, and baking logs are written under pyccapt/files/logs/baking/<timestamp>.

Calibration Highlights

Calibration visualization

PyCCAPT calibration workflows cover detector hit maps, FDM views, mass-spectrum calibration, bowl and voltage correction, reconstruction, and downstream visualization.

Mass spectrum

FDM Detector GIF

Voltage correction Bowl correction

TOF versus voltage TOF bowl correction

Ranged mass spectrum

Processed calibration datasets can be exported as HDF5, EPOS, POS, and ATO.

The visualization helpers also include optional two-segment precipitate clustering with a Min-Max algorithm so a selected precipitate population can be segmented directly in the 3D and iso-surface views.

For control part of the package you can follow the steps on documentation.

3D rotation 3D isosurface

Documentation

Google Colab notebooks:

Data Structures

Tutorial Dataset

Calibration tutorial data (pure aluminum), including raw and processed outputs, is available on Zenodo:

DOI

Citation

If you use PyCCAPT in your work, please cite:

@article{monajem2025pyccapt,
  title={PyCCAPT: A Python Package for Open-Source Atom Probe Instrument Control and Data Calibration},
  author={Monajem, Mehrpad and Ott, Benedict and Heimerl, Jonas and Meier, Stefan and Hommelhoff, Peter and Felfer, Peter},
  journal={Microscopy Research and Technique},
  volume={88},
  number={12},
  pages={3199--3210},
  year={2025},
  publisher={Wiley Online Library}
}

Citation metadata is also available in CITATION.cff.

Contributing

Contributions are welcome. See CONTRIBUTING.md for development workflow and pull-request guidance.

Support

  • Issues and bug reports: GitHub Issues
  • Contact: Mehrpad Monajem (mehrpad.monajem@fau.de)

License

PyCCAPT is licensed under the GNU General Public License v3.0. See LICENSE.

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

pyccapt-0.2.0.tar.gz (10.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyccapt-0.2.0-py3-none-any.whl (9.6 MB view details)

Uploaded Python 3

File details

Details for the file pyccapt-0.2.0.tar.gz.

File metadata

  • Download URL: pyccapt-0.2.0.tar.gz
  • Upload date:
  • Size: 10.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.20

File hashes

Hashes for pyccapt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d92807fe2edc235919df20e7aa2407a9cb13f3618c8a430d795344001822eb50
MD5 e54df943027162c2d68ce5cbcdcc96e6
BLAKE2b-256 df8a9c5460089816af14a818ce3afa8178be1ef3608f28dd4c35ad3c28a848db

See more details on using hashes here.

File details

Details for the file pyccapt-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyccapt-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.20

File hashes

Hashes for pyccapt-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea3348404f3ceceaf028094005ec9c4fd666cb231547acbeb60b57d25eb4f97
MD5 1a1022b67a91d5153f38cd53f53b2ccd
BLAKE2b-256 36c314c86b915f57ca7c1f7e96e6e5357ccaab4c08d9e5cc6a9f68740c583a44

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