results_io
Load/save simulation results.
- results_io.print_res_to_file(ref, sdir, pstring, log, results)[source]
Print simulation results to file.
Note: this is obsolete, kept for backward compatibility.
- Parameters:
ref (str) – Reference of the simulation, prepended to file name.
sdir (Path or str) – Path to sub-directory where file will be created.
pstring (str) – Set of simulation parameters.
log (str) – Simulation log.
results (dict) – Simulation results (see
simu.Simulation.run()
andsolvers.solver()
).
- Return type:
None.
- results_io.read_res_from_file(ref, sdir)[source]
Get simulation results from file.
The file format is expected to conform to
print_res_to_file()
.Note: this is obsolete, kept for backward compatibility.
- Parameters:
ref (str) – Reference at start of file name.
sdir (Path or str) – Path to sub-directory where file is to be found.
- Returns:
pstring (str) – Set of simulation parameters.
log (str) – Simulation log.
results (dict) – Simulation results (see
simu.Simulation.run()
andsolvers.solver()
).
- results_io.parse_log(ref, sdir)[source]
Get simulation results from log file.
- Parameters:
ref (str) – Simulation reference.
sdir (Path or str) – Path to sub-directory where file is to be found.
- Returns:
data (dict) – Simulation parameters (from input file + some logged in
simu.System
andsimu.Simulation
).results (dict) – Simulation results (see
simu.Simulation.run()
andsolvers.solver()
).