aspsim.diagnostics.diagnostics.StateComparison

class aspsim.diagnostics.diagnostics.StateComparison(compare_func, name_state1, name_state2, *args, **kwargs)

Bases: StateDiagnostic

compare_func should take the two states as argument, and return a single value representing the comparison (distance or MSE for example)

save_at_idx is an iterable which gives all indices for which to save data.

Must be an integer multiple of the block size. (maybe change to must be equal or larger than the block size)

__init__(compare_func, name_state1, name_state2, *args, **kwargs)
save_at_idx is an iterable which gives all indices for which to save data.

Must be an integer multiple of the block size. (maybe change to must be equal or larger than the block size)

Methods

__init__(compare_func, name_state1, ...)

save_at_idx is an iterable which gives all indices for which to save data.

get_output()

get_processed_output(time_idx, preprocess)

next_export()

next_save()

progress_export()

progress_save(progress_until)

save(processor, sig, chunkInterval, globInterval)

Attributes

export_functions

get_processed_output(time_idx, preprocess)