mythos.simulators.base
Base class for a simulation.
Classes
Output container for simlators. |
|
Base class for a simulation. |
|
A base class for simulators that run based on an input directory. |
Module Contents
- class mythos.simulators.base.Simulator[source]
Base class for a simulation.
- run(*_args, opt_params: dict[str, Any], **_kwargs) SimulatorOutput[source]
Run the simulation.
- class mythos.simulators.base.InputDirSimulator[source]
-
A base class for simulators that run based on an input directory.
This class handles copying the input directory to a temporary location unless overwrite_input is set to True.
Subclasses must implement the run_simulation method, which runs the simulation logic given the provided input directory.
- Parameters:
input_dir – Path to the input directory.
overwrite_input – Whether to overwrite the input directory or copy it. If this is False (default), the contents of the input_dir will be copied to a temporary directory for running the simulation to avoid overwriting input.
- run(*args, **kwargs) SimulatorOutput[source]
Run the simulation.
- abstractmethod run_simulation(input_dir: pathlib.Path, *args, **kwargs) SimulatorOutput[source]
Run the simulation in the given input directory.