API Reference#
PtyRAD is designed to be used primarily through params files using CLI commands or Jupyter notebooks. This section is intended for developers and advanced users interested in extending, debugging, or understanding the internal structure of the codebase.
Many of the functions and modules documented here are not part of a stable public API and may change without warning.
For typical usage, see the Using PtyRAD and Tutorials sections.
Command line Interface of PtyRAD, including running reconstructions, checking system information, and others |
|
Reconstruction and hypertune workflows for ptychographic reconstructions |
|
Initialize measurements, object, probe, probe positions, tilts, and other variables |
|
Optimizable model of the ptychographic reconstruction using automatic differentiation (AD) |
|
Physical forwad model that generates diffraction patterns from mixed-state probe/object in a fully vectorized way |
|
Loss functions and soft regularizations calculated using forward simulations against experimental measurements |
|
Physical constraints that directly modify optimizable tensors with specified intervals of iterations |
|
Loading functions for different file types including .mat, .hdf5, .tif, .raw, .yaml, etc. |
|
Saving functions for PtyRAD outputs including model, arrays, params files, etc. |
|
Plotting functions for output figures including forward passes, loss curves, positions, etc. |
|
Utility functions for logging, timing, image processing, etc. |