aspsim.diagnostics.diagnostics.RecordState

class aspsim.diagnostics.diagnostics.RecordState(state_name, state_dim, *args, label_suffix_channel=None, **kwargs)

Bases: StateDiagnostic

If state_dim is 1, the state is a scalar calue If the number is higher, the state is a vector, and the value of each component

will be plotted as each line by the default plot function

If state_dim is a tuple (i.e. the state is a matrix/tensor), then the default plot function will have trouble

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__(state_name, state_dim, *args, label_suffix_channel=None, **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__(state_name, state_dim, *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)