Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Metadata

Release files for nanoshot-stamp 0.1.0a6

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

Source distribution (sdist)

Source distribution for nanoshot-stamp 0.1.0a6
File Size Uploaded
nanoshot_stamp-0.1.0a6.tar.gz 55.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nanoshot-stamp 0.1.0a6
File Interpreter ABI Platform
nanoshot_stamp-0.1.0a6-py3-none-any.whl Python 3 none any Details

Total release size: 98.2 kB

Release files / nanoshot_stamp-0.1.0a6.tar.gz

Download URL nanoshot_stamp-0.1.0a6.tar.gz
Size 55.9 kB
Tags Source
SHA-256 checksum
How to use checksums
51c468476689b96dae0315408c6498a4ec52cb9e9e9afaabd26d08f4de1c927d
BLAKE2b-256 checksum
How to use checksums
0b9b02e75b2f989af6986e82fba17fa4c796d34d3d133c545d1f8c77a68ac10e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 18, 2026.

Transparency log

Release files / nanoshot_stamp-0.1.0a6-py3-none-any.whl

Download URL nanoshot_stamp-0.1.0a6-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b094760382f93a8369008b316084c5556c07bcbdf3fdadb0261a5e44f789b46f
BLAKE2b-256 checksum
How to use checksums
bd5d2738714be3aeedbbf7517e12ed70292d58d74949692cbf50411e226bc24d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 18, 2026.

Transparency log
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