Results#

class Results(module, *args, strict=True, **kwargs)[source]#

Bases: ndict

Container for storing results

Attributes

all_results

Iterator over all results, skipping any nested values

all_results_dict

Dictionary of all results, skipping any nested values

equal_len

Check if all results are equal length

is_msim

Check if this is a MultiSim

Methods

append(arg, key=None)[source]#

This is activated by adding as well, e.g. results += result

property is_msim#

Check if this is a MultiSim

property all_results#

Iterator over all results, skipping any nested values

property all_results_dict#

Dictionary of all results, skipping any nested values

property equal_len#

Check if all results are equal length

flatten(sep='_', only_results=True, keep_case=False, **kwargs)[source]#

Turn from a nested dictionary into a flat dictionary, keeping only results by default

to_df(sep='_', descend=False, **kwargs)[source]#

Merge all results dataframes into one :type sep: :param sep: separator for the column names :type sep: str :type descend: :param descend: whether to descend into nested results :type descend: bool :type kwargs: :param kwargs: passed to the to_df method, can include instructions for summarizing results by time

plot(style='fancy', fig_kw=None, plot_kw=None)[source]#

Plot all the results