snake.core.simulation
#
SImulation base objects.
Module Contents#
Classes#
Gradient Recall Echo Sequence parameters. |
|
Scanner Hardware parameters. |
|
Field of View configuration. |
|
All base configuration of a simulation. |
Data#
API#
- class snake.core.simulation.GreConfig[source]#
Gradient Recall Echo Sequence parameters.
- TE: float = None#
FA: Flip Angle in degrees. This is the angle of the RF pulse to the magnetization.
- _repr_html_ = None#
- class snake.core.simulation.HardwareConfig[source]#
Scanner Hardware parameters.
- _repr_html_ = None#
- snake.core.simulation.default_hardware = 'HardwareConfig(...)'#
- snake.core.simulation.default_gre = 'GreConfig(...)'#
- class snake.core.simulation.FOVConfig[source]#
Field of View configuration.
This class is used to define the FOV of the simulation. It uses the RAS convention and mm units.
Default values are from the BrainWeb dataset.
- size: snake._meta.ThreeFloats = (181, 217, 181)#
Size of the FOV in millimeter.
- offset: snake._meta.ThreeFloats = ()#
distance (in mm) of the bottom left left voxel to magnet isocenter.
- angles: snake._meta.ThreeFloats = (0, 0, 0)#
Euler Rotation Angles of the FOV in degrees
- res_mm: snake._meta.ThreeFloats = (1, 1, 1)#
Resolution of the FOV in mm.
- _repr_html_ = None#
- classmethod from_affine(affine: numpy.typing.NDArray, size: snake._meta.ThreeFloats) snake.core.simulation.FOVConfig [source]#
Create a FOVConfig from an affine matrix.
- property affine: numpy.typing.NDArray[numpy.float32]#
Generate an affine matrix from the FOV configuration.
- property shape: snake._meta.ThreeInts#
Shape of the associated array in voxels units.
- class snake.core.simulation.SimConfig[source]#
All base configuration of a simulation.
- seq: snake.core.simulation.GreConfig = 'field(...)'#
- hardware: snake.core.simulation.HardwareConfig = 'field(...)'#
- fov: snake.core.simulation.FOVConfig = 'field(...)'#
- _repr_html_ = None#
- property res_mm: snake._meta.ThreeFloats#
Voxel resolution in mm.
- property shape: snake._meta.ThreeInts#
Shape of the simulation.
- property fov_mm: snake._meta.ThreeFloats#
Size of the FOV in mm.