PYPI PACKAGE AUDIT v0.2.6 Healthy Package

zebsdsolve

EBSD pattern-centre fitting and indexing on the GPU (Zig + WGSL over WebGPU), with its web app

PyPkgScore zebsdsolve
Methodology & Criteria ♥ Donate
770 / 1000
Quick Install
pip install zebsdsolve
1. Governance
100/200
2. PEP Metadata
200/200
3. Security
200/200
4. Docs & SEO
105/200
5. CI Engineering
165/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
942
Last 30 days
1466
Total (180 days)
1703
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 770 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community100 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✓ 50 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Security & Supply Chain200 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem105 / 200 ▾
Structured README✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Website / Technical Articles✓ 45 pts
5. Engineering, CI & Quality165 / 200 ▾
Automated Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide — zebsdsolve

PyPI Metadata v0.2.6
Show full original documentation (English README) ▾

zebsdsolve

EBSD pattern-centre fitting and indexing on the GPU, in the browser or from Python.

Open the web app: it runs on your GPU inside the page (Chrome or Edge 137+). Scans are read in place, in pieces, so a 100 GB file is neither uploaded nor loaded into memory. Click Example for a small nickel scan, or Make toy scan to simulate one from a master pattern.

What it does

  • Indexes by spherical cross-correlation over all orientations, refined on the detector: about 23 000 patterns per second on a desktop GPU, 67 000 in two sweeps. Dictionary indexing is there too.
  • Fits the geometry: the pattern centre by a vote of a few patterns; then the plane of source points: each fit pattern's own source point, and the affine or projective transformation of the scan through them (after Winkelmann et al. 2020 and kikuchipy's fit_pc), from the scan's own patterns and asking nothing of the step, the pixel size or the tilt, which it then reports with their standard errors. The automatic fit takes the simplest model the map supports: one pattern centre, a tilt line or the plane. The app shows the search's volume in 3D and every pattern's source point against the plane.
  • Prepares patterns: binning, neighbour averaging (NLPAR), static and dynamic background, CLAHE, band pass, mask.
  • Simulates master patterns from a CIF (dynamical Bloch waves, depth-integrated by a low-rank Lyapunov solve corrected by its dual-weighted residual: ebsdsim's method made 3–6× faster and several times more accurate), in the app's Simulate tab or from Python, to index with at once or save.
  • Handles several phases, and writes .ang and .ctf, and .h5oina from an Oxford acquisition, in the reference frame it finds the scan file's own orientations in, reporting the misorientation left between them (conventions; the app draws each under File › View conventions).
  • Reads h5ebsd (kikuchipy, Bruker, EDAX, Oxford .h5oina, its processed or its unprocessed patterns), EDAX .up1 / .up2 (with the scan's .ang for the map's shape, steps, image quality and pattern centre: solver.open("scan.up1", "scan.ang")), Oxford .ebsp, NORDIF Pattern.dat. Master patterns: ebsdsim .npz and EMsoft .h5.

One engine (Zig and WGSL) runs natively through wgpu-native and as WebAssembly on WebGPU, so the app and the Python package do the same thing.

Python

pip install zebsdsolve
python -m zebsdsolve          # the same app, served locally
import zebsdsolve as ze

res = ze.index("scan.h5", ["Ni.npz"], fit="geometry")   # fit the geometry, then index
res.quaternions, res.ncc, res.phase                  # per map cell
res.geometry                                         # what the fits found

Every option is a keyword (src/settings.zig); ze.Solver drives the steps one at a time. Two tutorials are in examples/.

More

MIT (LICENSE). The wheels bundle wgpu-native (MIT / Apache-2.0); the example scan is kikuchipy's nickel_ebsd_large, CC BY 4.0 (sources).