sisl.mixing.History
- class sisl.mixing.History(history=2)
Bases:
object
A history class for retaining a set of history elements
A history class may contain several different variables in a
collections.deque
list allowing easy managing of the length of the history.- Parameters
history (int, optional) – number of maximum history elements stored
Methods
append
(*args)Add variables to the history
clear
([index])Clear variables to the history
Number of elements in the history
Maximum number of elements stored in the history for each variable
- property elements
Number of elements in the history
- property max_elements
Maximum number of elements stored in the history for each variable