etspy.simulation.misalign_stack(stack: TomoStack, min_shift: int = -5, max_shift: int = 5, tilt_shift: int = 0, tilt_rotate: int = 0, y_only: bool = False, interp_order: int = 3) TomoStack[source]

Apply misalignment to a model tilt series.

Parameters:
stack: TomoStack

TomoStack simluation

min_shift: int = -5

Minimum amount of jitter to apply to the stack

max_shift: int = 5

Maximum amount of jitter to apply to the stack

tilt_shift: int = 0

Number of pixels by which to offset the tilt axis from the center

tilt_rotate: int = 0

Amount of rotation to apply to the stack

y_only: bool = False

If True, limit the application of jitter to the y-direction only. Default is False

interp_order: int = 3

The order of spline interpolation used by the scipy.ndimage.shift() or scipy.ndimage.rotate() function. The order must be in the range 0-5.

Returns:

misaligned – Misaligned copy of the input TomoStack

Return type:

TomoStack