BaseSampler#

class snake.core.sampling.base.BaseSampler(*, constant=True)[source]#

Bases: object

Sampler Interface.

A Sampler is designed to generate a sampling pattern.

Examples

>>> S = Sampler()
>>> S.generate()

Methods

__init__

add_all_acq_mrd

Export the Sampling pattern to file.

get_next_frame

Generate the next frame.

Attributes

constant

log

Get a logger.

Parameters:

constant (bool)

property log: Logger#

Get a logger.

_single_frame(sim_conf)[source]#

Generate a single frame.

Parameters:

sim_conf (SimConfig)

Return type:

ndarray[Any, dtype[_ScalarType_co]]

get_next_frame(sim_conf)[source]#

Generate the next frame.

Parameters:

sim_conf (SimConfig)

Return type:

ndarray[Any, dtype[_ScalarType_co]]

add_all_acq_mrd(dataset, sim_conf)[source]#

Export the Sampling pattern to file.

Parameters:
Return type:

Dataset