aspsim.diagnostics.core

Functions

abstractmethod(funcobj)

A decorator indicating abstract methods.

attritemgetter(name)

If you have a dictionary with strings, use the name "dict_obj['key']" Without apostrophes, the key is assumed to be a list index, and is converted to integer.

get_values_from_selection(signal, ...)

gives back signal values that correspond to time_values less than max_idx, and signal values that are not nan

get_values_up_to_idx(signal, max_idx)

gives back signal values that correspond to time_values less than max_idx, and signal values that are not nan

Classes

Diagnostic(sim_info, export_at, save_at, ...)

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

IndexCounter(idx_selection[, tot_samples])

idx_selection is either an iterable of indices, or a single number

InstantDiagnostic(sim_info[, save_at, ...])

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

IntervalCounter(intervals[, num_values])

intervals is an iterable or iterator where each entry is a tuple or list of length 2, with start (inclusive) and end (exclusive) points of each interval np.ndarray of shape (num_intervals, 2) is also valid

Logger(sim_info)

SignalDiagnostic(sim_info[, export_at, ...])

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

StateDiagnostic(sim_info[, export_at, ...])

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