aspsim.diagnostics.diagnostics.StateSummary
- class aspsim.diagnostics.diagnostics.StateSummary(summary_func, state_name, *args, **kwargs)
Bases:
StateDiagnostic
summary_func should take the state as argument and return a single scalar representing the state (norm or power 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__(summary_func, state_name, *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__
(summary_func, state_name, *args, ...)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)