Battery Cell#

Defines the BatteryCell class which holds all relevant data information on a battery cell

exception basd.database.battery_cell.UnsupportedCellFormat[source]#

Cell format that is not supported

class basd.database.battery_cell.BatteryCell(cfg: dict)[source]#

Class to hold all relevant data information on a battery cell

Variables:
  • identification – all information needed to identify the battery cell

  • mechanics – all mechanical properties of the battery cell

  • electrics – all electrical properties of the battery cell

__init__(cfg: dict) None[source]#
__str__() str[source]#

Return str(self).

__repr__() str[source]#

Return repr(self).

_add_identification(identification: dict) Identification[source]#

returns the identification properties of the cell read from the dictionary to be added to the attributes.

Returns:

the identification properties of the cell

Raises:

[UnsupportedCellFormat] – if the type of cell is not supported

_add_mechanics(mechanics: dict) Mechanics[source]#

returns the mechanical properties of the cell read from the dictionary to be added to the attributes.

Returns:

the mechanical properties of the battery cell

Raises:

[UnsupportedCellFormat] – if the type of cell is not supported

_add_electrics(electrics: dict) Electrics[source]#

returns the mechanical properties of the cell read from the dictionary to be added to the attributes.

Returns:

the electrical properties of the battery cell