httomo.sweep_runner.param_sweep_store_interfaces.ParamSweepSink#

class httomo.sweep_runner.param_sweep_store_interfaces.ParamSweepSink(*args, **kwargs)[source]#

Sink for writing parameter sweep results to

Methods

__init__(*args, **kwargs)

finalize()

Method to be called after writing all blocks is done

make_reader()

Return a source from the sink, from which the data written to the sink can be read

write_sweep_result(block)

Writes single sweep result contained in a block to store along the concat_dim axis

Attributes

concat_dim

Dimension to concatenate sweep results along - 0, 1, or 2

no_of_sweeps

Number of parameter values to sweep over

single_shape

Shape of single param sweep result

total_shape

Shape of 3D array to contain all param sweep results concatenated along concat_dim

property concat_dim: Literal[0, 1, 2]#

Dimension to concatenate sweep results along - 0, 1, or 2

finalize()[source]#

Method to be called after writing all blocks is done

make_reader() ParamSweepSource[source]#

Return a source from the sink, from which the data written to the sink can be read

property no_of_sweeps: int#

Number of parameter values to sweep over

property single_shape: Tuple[int, int, int]#

Shape of single param sweep result

property total_shape: Tuple[int, int, int]#

Shape of 3D array to contain all param sweep results concatenated along concat_dim

write_sweep_result(block: DataSetBlock)[source]#

Writes single sweep result contained in a block to store along the concat_dim axis