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() and solvers.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:

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: