phaser.state
phaser.state
StateObserver
module-attribute
StateObserver: TypeAlias = Callable[
[Union[ReconsState, PartialReconsState]], Any
]
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
Total number of iterations in this engine.
n_total_iters
class-attribute
instance-attribute
Total number of iterations in the reconstruction.
to_numpy
copy
ProbeState
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)
resample
resample(
new_samp: Sampling,
rotation: float = 0.0,
order: int = 1,
mode: _BoundaryMode = "grid-constant",
) -> Self
Source code in phaser/state.py
to_xp
to_xp(xp: Any) -> Self
to_numpy
ObjectState
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.
to_xp
to_xp(xp: Any) -> Self
to_numpy
zs
ProgressState
Source code in phaser/state.py
detector_errors
instance-attribute
Detector error measurements at those iterations
to_numpy
copy
ReconsState
Source code in phaser/state.py
scan
instance-attribute
Scan coordinates (y, x), in length units. Shape (..., 2)
tilt
class-attribute
instance-attribute
Tilt angles (y, x) per scan position, in mrad. Shape (..., 2)
to_numpy
Source code in phaser/state.py
copy
write_hdf5
read_hdf5
staticmethod
read_hdf5(file: HdfLike) -> ReconsState
PartialReconsState
Source code in phaser/state.py
scan
class-attribute
instance-attribute
Scan coordinates (y, x), in length units. Shape (..., 2)
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