Python API reference#
Use this section to check parameters, units, return values, and supported options. For a first session, follow I/O, DPC and SSB on one page. The examples use one public Python API on supported MPS and CUDA paths.
Task |
Entry point |
Returns |
Details |
|---|---|---|---|
Load and select measurements |
|
|
|
Save or inspect a file |
|
Saved acquisition or header report |
|
Mean diffraction, BF, ADF, DF |
|
Reduced NumPy images |
|
CoM and integrated DPC |
|
|
|
Find aberrations; reconstruct phase |
|
|
|
Render a movie |
|
Encoded artifact |
Use (row, col) coordinates. data.sampling, data.units, and data.origin
describe the axes; data.metadata holds the full record. Unknown calibration
stays explicit. See the individual API page for dtype, ownership, and backend
limitations before interpreting a result.
Supporting modules#
Module |
Purpose |
Details |
|---|---|---|
|
Discovery, loading, indexing, inspection, saving |
|
|
Detector geometry, images, and phase gradients |
|
|
Detect or explicitly select an accelerator |
|
|
Relativistic electron wavelength |
|
|
Parallax reconstruction |
|
|
Scan-plane rotation of an acquisition |
|
|
Reuse derived products for application integration |
|
|
Display math and export |
Native Swift products, browser kernels, and byte-level formats are documented under the Developer guide. Ordinary Python workflows use the public modules above rather than importing backend internals.