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
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
Dimension to concatenate sweep results along - 0, 1, or 2
Number of parameter values to sweep over
Shape of single param sweep result
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
- 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