AxisAlignedBeamTilt
AxisAlignedBeamTilt#
- class abtem.tilt.AxisAlignedBeamTilt(tilt=0.0, direction='x')[source]#
Bases:
abtem.tilt.BaseBeamTiltClass describing tilt(s) aligned with an axis.
- Parameters
tilt (array of BeamTilt) – Tilt along the given direction with an optional spread of values.
direction (str) – Cartesian axis, should be either ‘x’ or ‘y’.
Methods
__init__([tilt, direction])apply(waves[, in_place])Apply tilt(s) to (an ensemble of) wave function(s).
copy()Make a copy.
ensemble_blocks([chunks])Split the ensemble into an array of smaller ensembles.
generate_blocks([chunks])Generate chunks of the ensemble.
select_block(index, chunks)Select a block from the ensemble.
Attributes
List of AxisMetadata.
List of AxisMetadata of the base axes.
Shape of the base axes.
Tilt direction.
Axes metadata describing the ensemble axes added to the waves when applying the transform.
The shape of the ensemble axes added to the waves when applying the transform.
Metadata added to the waves when applying the transform.
Shape of the ensemble.
Beam tilt [mrad].
- apply(waves, in_place=False)#
Apply tilt(s) to (an ensemble of) wave function(s).
- property axes_metadata: abtem.core.axes.AxesMetadataList#
List of AxisMetadata.
- Return type
AxesMetadataList
- property base_axes_metadata: list[abtem.core.axes.AxisMetadata]#
List of AxisMetadata of the base axes.
- Return type
list[AxisMetadata]
- property base_shape: tuple[int, ...]#
Shape of the base axes.
- Return type
tuple[int,...]
- copy()#
Make a copy.
- property direction: str#
Tilt direction.
- Return type
str
- property ensemble_axes_metadata: list[abtem.core.axes.AxisMetadata]#
Axes metadata describing the ensemble axes added to the waves when applying the transform.
- Return type
list[AxisMetadata]
- ensemble_blocks(chunks=None)#
Split the ensemble into an array of smaller ensembles.
- Parameters
chunks (iterable of tuples) – Block sizes along each dimension.
- Return type
Array
- property ensemble_shape#
The shape of the ensemble axes added to the waves when applying the transform.
- generate_blocks(chunks=1)#
Generate chunks of the ensemble.
- Parameters
chunks (iterable of tuples) – Block sizes along each dimension.
- property metadata#
Metadata added to the waves when applying the transform.
- select_block(index, chunks)#
Select a block from the ensemble.
- Parameters
index (tuple of ints) – Index of selected block.
chunks (iterable of tuples) – Block sizes along each dimension.
- property shape#
Shape of the ensemble.
- property tilt: float | BaseDistribution#
Beam tilt [mrad].
- Return type
float | BaseDistribution