acryo.testing package
Submodules
acryo.testing.core module
- class acryo.testing.core.TomogramGenerator(template: numpy.ndarray, grid_shape: tuple[int, int] = (10, 10), rotations=None, noise_sigma: float = 1, seed: int = 0)[source]
Bases:
object
A tester class for subtomogram averaging and alignment.
Given a template image, this class can create tomogram by assembling rotated, noisy template images gridwise. Molecules objects can also be sampled with arbitrary positional errors.
- get_tomogram(pad_width: int = 0, tilt_range: tuple[float, float] = (- 90, 90)) numpy.ndarray [source]
- property grid_shape
- property noise_sigma
- property quaternions
- property template
Module contents
- class acryo.testing.TomogramGenerator(template: numpy.ndarray, grid_shape: tuple[int, int] = (10, 10), rotations=None, noise_sigma: float = 1, seed: int = 0)[source]
Bases:
object
A tester class for subtomogram averaging and alignment.
Given a template image, this class can create tomogram by assembling rotated, noisy template images gridwise. Molecules objects can also be sampled with arbitrary positional errors.
- get_tomogram(pad_width: int = 0, tilt_range: tuple[float, float] = (- 90, 90)) numpy.ndarray [source]
- property grid_shape
- property noise_sigma
- property quaternions
- property template