odatse.algorithm.mapper_mpi_base module
- class odatse.algorithm.mapper_mpi_base.Algorithm(info: Info, runner: Runner | None = None, domain=None, run_mode: str = 'initial', meshgrid: bool = True)[source]
Bases:
AlgorithmBaseAlgorithm class for data analysis of quantum beam diffraction experiments. Inherits from odatse.algorithm.AlgorithmBase.
Initialize the Algorithm instance.
- Parameters:
info (Info) – Information object containing algorithm parameters.
runner (Runner) – Optional runner object for submitting tasks.
domain – Optional domain object, defaults to MeshGrid.
run_mode (str) – Mode to run the algorithm, defaults to “initial”.
meshgrid (bool) – Whether to use mesh grid or points.
- __init__(info: Info, runner: Runner | None = None, domain=None, run_mode: str = 'initial', meshgrid: bool = True) None[source]
Initialize the Algorithm instance.
- Parameters:
info (Info) – Information object containing algorithm parameters.
runner (Runner) – Optional runner object for submitting tasks.
domain – Optional domain object, defaults to MeshGrid.
run_mode (str) – Mode to run the algorithm, defaults to “initial”.
meshgrid (bool) – Whether to use mesh grid or points.
- _load_state(filename, restore_rng=True)[source]
Load the state of the algorithm from a file.
- Parameters:
filename – The name of the file to load the state from.
restore_rng (bool) – Whether to restore the random number generator state.