phaser.state
phaser.state
Patterns
Source code in phaser/state.py
patterns
instance-attribute
Raw diffraction patterns, with 0-frequency sample in corner
pattern_mask
instance-attribute
Mask indicating which portions of the diffraction patterns contain data.
IterState
Source code in phaser/state.py
engine_num
instance-attribute
engine_num: int
Engine number. 1-indexed (0 means before any reconstruction).
engine_iter
instance-attribute
engine_iter: int
Iteration number on this engine. 1-indexed (0 means before any iterations).
total_iter
instance-attribute
total_iter: int
Total iteration number. 1-indexed (0 means before any iterations).
n_engine_iters
class-attribute
instance-attribute
n_engine_iters: int | None = None
Total number of iterations in this engine.
n_total_iters
class-attribute
instance-attribute
n_total_iters: int | None = None
Total number of iterations in the reconstruction.
to_numpy
copy
PixelatedProbeState
Source code in phaser/state.py
sampling
instance-attribute
Probe coordinate system. See Sampling for more details.
data
instance-attribute
data: NDArray[complexfloating]
Probe wavefunction, in realspace. Shape (modes, y, x)
meta
class-attribute
instance-attribute
resample
resample(
new_samp: Sampling,
rotation: float = 0.0,
order: int = 1,
mode: _InterpBoundaryMode = "grid-constant",
) -> Self
Source code in phaser/state.py
to_xp
to_xp(xp: Any) -> Self
to_numpy
PixelatedObjectState
Source code in phaser/state.py
sampling
instance-attribute
Object coordinate system. See ObjectSampling for more details.
thicknesses
instance-attribute
Slice thicknesses (in length units). Length < 2 for single slice, equal to the number of slices otherwise.
meta
class-attribute
instance-attribute
to_xp
to_xp(xp: Any) -> Self
to_numpy
zs
ScanState
Source code in phaser/state.py
data
instance-attribute
Scan coordinates (y, x), in length units. Shape (..., 2)
initial
instance-attribute
Inital scan coordinates (y, x), in length units.
tilt
class-attribute
instance-attribute
Tilt angles (y, x) per scan position, in mrad. Shape (..., 2)
meta
class-attribute
instance-attribute
to_xp
to_xp(xp: Any) -> Self
to_numpy
ProgressState
Source code in phaser/state.py
iters
class-attribute
instance-attribute
Iterations error measurements were taken at.
values
class-attribute
instance-attribute
Detector error measurements at those iterations
ReconsState
Source code in phaser/state.py
progress
class-attribute
instance-attribute
progress: dict[str, ProgressState] = field(
default_factory=dict
)
to_xp
to_xp(xp: Any) -> Self
to_numpy
copy
write_hdf5
read_hdf5
staticmethod
read_hdf5(file: HdfLike) -> ReconsState
PartialReconsState
Source code in phaser/state.py
to_numpy
Source code in phaser/state.py
to_complete
to_complete() -> ReconsState
Source code in phaser/state.py
write_hdf5
read_hdf5
staticmethod
read_hdf5(file: HdfLike) -> PartialReconsState
PreparedRecons
Source code in phaser/state.py
to_xp
to_xp(xp: Any) -> Self