snake.core.handlers.utils

snake.core.handlers.utils#

Utility functions for handlers.

Module Contents#

Functions#

apply_weights

Apply weights to the tissue.

API#

snake.core.handlers.utils.apply_weights(phantom: snake.core.phantom.Phantom, tissue_name: str, weights: numpy.typing.NDArray, time_idx: int) snake.core.phantom.Phantom[source]#

Apply weights to the tissue.