snake.core.handlers.base
#
Base handler module.
Module Contents#
Classes#
MetaClass for Handlers. |
|
Handler Interface. |
|
Represent a Chain of Handler, that needs to be apply to a simulation. |
Functions#
List all available handlers. |
|
Get a handler from its name. |
Data#
API#
- snake.core.handlers.base.T = 'TypeVar(...)'#
- class snake.core.handlers.base.MetaHandler[source]#
Bases:
snake._meta.MetaDCRegister
MetaClass for Handlers.
- class snake.core.handlers.base.AbstractHandler[source]#
Handler Interface.
- get_static(phantom: snake.core.phantom.Phantom, sim_conf: snake.core.simulation.SimConfig) snake.core.phantom.Phantom [source]#
Get the static information of the handler.
- get_dynamic(phantom: snake.core.phantom.Phantom, sim_conf: snake.core.simulation.SimConfig) snake.core.phantom.DynamicData | None [source]#
Get the dynamic information of the handler.
- get_dynamic_kspace(sim_conf: snake.core.simulation.SimConfig) snake.core.phantom.KspaceDynamicData | None [source]#
Get the dynamic kspace information of the handler.
- class snake.core.handlers.base.HandlerList(*args: snake.core.handlers.base.AbstractHandler)[source]#
Bases:
collections.UserList
Represent a Chain of Handler, that needs to be apply to a simulation.
Initialization
- snake.core.handlers.base.H = None#
- snake.core.handlers.base.handler = None#
- snake.core.handlers.base.get_handler(name: str) type[snake.core.handlers.base.AbstractHandler] [source]#
Get a handler from its name.