trixi.experiment_browser¶
browser¶
dataprocessing¶
-
trixi.experiment_browser.dataprocessing.
make_graphs
(results, trace_options=None, layout_options=None, color_map=<sphinx.ext.autodoc.importer._MockObject object>)[source]¶ Create plot markups.
This converts results into plotly plots in markup form. Results in a common group will be placed in the same plot.
Parameters: results (dict) – Dictionary
-
trixi.experiment_browser.dataprocessing.
process_base_dir
(base_dir, view_dir='', default_val='-', short_len=25, ignore_keys=('name', 'experiment_dir', 'work_dir', 'config_dir', 'log_dir', 'checkpoint_dir', 'img_dir', 'plot_dir', 'save_dir', 'result_dir', 'time', 'state'))[source]¶ Create an overview table of all experiments in the given directory.
Parameters: Returns: - {“ccols”: Columns for config entries,
”rcols”: Columns for result entries, “rows”: The actual data}
Return type:
ExperimentReader¶
-
class
trixi.experiment_browser.experimentreader.
CombiExperimentReader
(base_dir, exp_dirs=(), name=None, decode_config_clean_str=True)[source]¶ Bases:
trixi.experiment_browser.experimentreader.ExperimentReader
-
get_results
()[source]¶ Get the last result item.
Returns: The last result item in the experiment. Return type: dict
-
get_results_log
()[source]¶ Build result dictionary.
During the experiment result items are written out as a stream of quasi-atomic units. This reads the stream and builds arrays of corresponding items. The resulting dict looks like this:
{ "result group": { "result": { "counter": x-array, "data": y-array } } }
Returns: Result dictionary. Return type: dict
-
-
class
trixi.experiment_browser.experimentreader.
ExperimentReader
(base_dir, exp_dir='', name=None, decode_config_clean_str=True)[source]¶ Bases:
object
Reader class to read out experiments created by
trixi.experimentlogger.ExperimentLogger
.Parameters: -
static
get_file_contents
(folder, include_subdirs=False)[source]¶ Get all files in a folder.
Returns: All files joined with folder path. Return type: list
-
get_log_file_content
(file_name)[source]¶ Read out log file and HTMLify.
Parameters: file_name (str) – Name of the log file. Returns: Log file contents as HTML ready string. Return type: str
-
get_results
()[source]¶ Get the last result item.
Returns: The last result item in the experiment. Return type: dict
-
get_results_log
()[source]¶ Build result dictionary.
During the experiment result items are written out as a stream of quasi-atomic units. This reads the stream and builds arrays of corresponding items. The resulting dict looks like this:
{ "result group": { "result": { "counter": x-array, "data": y-array } } }
Returns: Result dictionary. Return type: dict
-
static