pymchelper.executor.runner module¶
-
class
pymchelper.executor.runner.OutputDataType[source]¶ Bases:
enum.IntEnumOutput type requested by user plots (i.e .png) or text data
-
plot= 1¶
-
txt= 2¶
-
-
class
pymchelper.executor.runner.Runner(jobs=None, keep_workspace_after_run=False, output_directory='.')[source]¶ Bases:
objectMain class responsible for configuring and starting multiple parallel MC simulation processes It can be used to access combined averaged results of the simulation.
-
get_data()[source]¶ Scans the output directory for location of the working directories (like run_1, run_2). Takes all files from all working directories in output_dir, merges their content to form pymchelper Estimator objects. For each of the output file a single Estimator objects is created, which holds numpy arrays with results. Return dictionary with keys being output filenames, and values being Estimator objects
-
-
class
pymchelper.executor.runner.SingleSimulationExecutor[source]¶ Bases:
objectCallable class responsible for execution of the single MC simulation process.
-
class
pymchelper.executor.runner.WorkspaceManager(output_directory='.', keep_workspace_after_run=False)[source]¶ Bases:
objectA workspace consists of multiple working directories (i.e. run_1, run_2), each per one of the parallel simulation run.