Container#

data container for the simulation

class basd.simulation.container.Container(report_name: str, system_index: int, system_design: dict, _Container__time_stamps: list[float] = <factory>, _Container__state_vectors: list[~typing.Any] = <factory>)[source]#

Container dataclass used to store the simulated battery system parameter

property time_stamps: list[float]#

property of the time stamps attribute

property state_vectors: list[float]#

property of the state vectors attribute

get_state_vector(time_stamp: float) Any[source]#

used to get a state vector specified by the time stamp

Parameters:

time_stamp – time_stamp to specify the corresponding state vector

Returns:

returns the corresponding state vector

__len__() int[source]#

returns the number of stored state vectors

append(time_stamp: float, state_vector: Any) None[source]#

appends a time stamp and a state vector to the container

Parameters:
  • time_stamp – time_stamp which should be added

  • state_vector – state_vector corresponding to the time_stamp

__eq__(other)#

Return self==value.

__hash__ = None#
__init__(report_name: str, system_index: int, system_design: dict, _Container__time_stamps: list[float] = <factory>, _Container__state_vectors: list[~typing.Any] = <factory>) None#
__repr__()#

Return repr(self).