Skip to main content

Stereological Tools for Analysis of Microstructural Parameters

Project description

STAMP logo

STAMP

CI PyPI version Python versions License: MIT codecov

Stereological Tools for Analysis of Microstructural Parameters

STAMP is a scientific Python package for quantitative 2-D microstructural analysis. It provides tools to load grain or precipitate measurements, apply stereological corrections to recover 3-D size distributions, compute descriptive statistics with confidence intervals, and generate publication-ready figures.

New features follow a spec-driven development workflow — a written spec is agreed before any code is written, ensuring the API, algorithm, and test plan are correct by design. See CONTRIBUTING.md for details.

Modules

Module Purpose
stamp.io Load CSV, Excel, or TXT/TSV files and MIPAR feature-measurement exports into a pd.DataFrame
stamp.stereo Stereological corrections: ECD conversion, Fullman (1953) linear intercept, Saltykov/Wicksell (1925/1967) matrix unfolding, two-step lognormal fitting (Lopez-Sanchez & Llana-Funez 2016)
stamp.stats Descriptive statistics with confidence intervals: arithmetic mean (ASTM E112, GCI, mCox), geometric mean (CLT, Bayesian), median (Hollander–Wolfe), KDE mode, MLE distribution fitting with KS goodness-of-fit
stamp.plot Publication-ready figures: histogram + KDE, Saltykov dual-panel (frequency + volume CDF), two-step fit with ±3σ band, PDF/CDF profile, Q-Q plot
stamp.pipeline Batch processing across multiple material states; produces a PipelineResult with per-state statistics, a summary DataFrame, and optional auto-saved box plot and CSV

Installation

pip install nanoshot-stamp

To also install JupyterLab for running the example notebooks:

pip install "nanoshot-stamp[notebooks]"

Or with uv:

uv add "nanoshot-stamp[notebooks]"

Documentation

Full documentation is available at stamp.readthedocs.io.

Citation

If you use STAMP in your research, please cite it:

@software{westraadt_stamp_2026,
  author  = {Westraadt, Johan},
  title   = {STAMP: Stereological Tools for Analysis of Microstructural Parameters},
  year    = {2026},
  url     = {https://github.com/jwestraadt/STAMP},
  license = {MIT}
}

Or use GitHub's Cite this repository button (powered by CITATION.cff).

Contributing

Contributions are welcome! See CONTRIBUTING.md for details.

License

MIT — see LICENSE for details.

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

nanoshot_stamp-0.1.0a5.tar.gz (54.9 kB view details)

Uploaded Source

Built Distribution

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

nanoshot_stamp-0.1.0a5-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file nanoshot_stamp-0.1.0a5.tar.gz.

File metadata

  • Download URL: nanoshot_stamp-0.1.0a5.tar.gz
  • Upload date:
  • Size: 54.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nanoshot_stamp-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 7795bbeba50ce99d3ed8b3e254751f0cfd4d19135eefe87831e226520d12eb9e
MD5 83eae31c88c28c7505b937cbf31744c8
BLAKE2b-256 6d05c4b3a991d23f87d5541223e8fcd10a3091eb3a8271e6f18d37ba021acc73

See more details on using hashes here.

Provenance

The following attestation bundles were made for nanoshot_stamp-0.1.0a5.tar.gz:

Publisher: publish.yml on jwestraadt/STAMP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nanoshot_stamp-0.1.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for nanoshot_stamp-0.1.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 c108c144b18aa9066016199c63ae3188eb5e5975e9c704d75eaccbff3ffe1cc4
MD5 7d5369a71d402774a00a2261cafbf35f
BLAKE2b-256 406b35ebc72290d4de33102805c43686adeb2b949ce5842be6ff7701bc420007

See more details on using hashes here.

Provenance

The following attestation bundles were made for nanoshot_stamp-0.1.0a5-py3-none-any.whl:

Publisher: publish.yml on jwestraadt/STAMP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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