Cells¶
Cell
¶
Bases: Item
A model for representing electrochemical cells.
Attributes:
| Name | Type | Description |
|---|---|---|
active_ion_charge |
float
|
|
blocks_obj |
dict[str, DataBlockResponse]
|
A mapping from block ID to block data. |
cell_format |
CellFormat | None
|
The form factor of the cell, e.g., coin, pouch, in situ or otherwise. |
cell_format_description |
str | None
|
Additional human-readable description of the cell form factor, e.g., 18650, AMPIX, CAMPIX |
cell_preparation_description |
str | None
|
|
characteristic_chemical_formula |
str | None
|
The chemical formula of the active material. Can be used to calculated molar mass in g/mol for normalizing capacities. |
characteristic_mass |
float | None
|
The characteristic mass of the cell in milligrams. Can be used to normalize capacities. |
characteristic_molar_mass |
float | None
|
The molar mass of the active material, in g/mol. Will be inferred from the chemical formula, or can be supplied if it cannot be supplied |
collections |
list[Collection]
|
Inlined info for the collections associated with this item. |
creator_ids |
list[PyObjectId]
|
The database IDs of the user(s) who created the item. |
creators |
list[Person] | None
|
Inlined info for the people associated with this item. |
date |
IsoformatDateTime | None
|
A relevant 'creation' timestamp for the entry (e.g., purchase date, synthesis date). |
description |
str | None
|
A description of the item, either in plain-text or a markup language. |
display_order |
list[str]
|
The order in which to display block data in the UI. |
electrolyte |
list[CellComponent]
|
|
file_ObjectIds |
list[PyObjectId]
|
Links to object IDs of files stored within the database. |
files |
list[File] | None
|
Any files attached to this sample. |
immutable_id |
PyObjectId
|
The immutable database ID of the entry. |
item_id |
HumanReadableIdentifier
|
A locally unique, human-readable identifier for the entry. This ID is mutable. |
last_modified |
IsoformatDateTime | None
|
The timestamp at which the entry was last modified. |
name |
str | None
|
An optional human-readable/usable name for the entry. |
negative_electrode |
list[CellComponent]
|
|
positive_electrode |
list[CellComponent]
|
|
refcode |
Refcode
|
A globally unique immutable ID comprised of the deployment prefix (e.g., |
relationships |
list[TypedRelationship] | None
|
A list of related entries and their types. |
revision |
int
|
The revision number of the entry. |
revisions |
dict[int, Any] | None
|
An optional mapping from old revision numbers to the model state at that revision. |
type |
str
|
The resource type of the entry. |
blocks_obj
¶
A mapping from block ID to block data.
cell_format
¶
cell_format: CellFormat | None
The form factor of the cell, e.g., coin, pouch, in situ or otherwise.
cell_format_description
¶
cell_format_description: str | None
Additional human-readable description of the cell form factor, e.g., 18650, AMPIX, CAMPIX
characteristic_chemical_formula
¶
characteristic_chemical_formula: str | None
The chemical formula of the active material. Can be used to calculated molar mass in g/mol for normalizing capacities.
characteristic_mass
¶
characteristic_mass: float | None
The characteristic mass of the cell in milligrams. Can be used to normalize capacities.
characteristic_molar_mass
¶
characteristic_molar_mass: float | None
The molar mass of the active material, in g/mol. Will be inferred from the chemical formula, or can be supplied if it cannot be supplied
collections
¶
collections: list[Collection] = Field([])
Inlined info for the collections associated with this item.
creator_ids
¶
The database IDs of the user(s) who created the item.
creators
¶
Inlined info for the people associated with this item.
date
¶
date: IsoformatDateTime | None
A relevant 'creation' timestamp for the entry (e.g., purchase date, synthesis date).
description
¶
description: str | None
A description of the item, either in plain-text or a markup language.
display_order
¶
The order in which to display block data in the UI.
file_ObjectIds
¶
Links to object IDs of files stored within the database.
immutable_id
¶
immutable_id: PyObjectId = Field(None, title='Immutable ID', alias='_id', format='uuid')
The immutable database ID of the entry.
item_id
¶
item_id: HumanReadableIdentifier
A locally unique, human-readable identifier for the entry. This ID is mutable.
last_modified
¶
last_modified: IsoformatDateTime | None = None
The timestamp at which the entry was last modified.
refcode
¶
refcode: Refcode = None
A globally unique immutable ID comprised of the deployment prefix (e.g., grey)
and a locally unique string, ideally created with some consistent scheme.
relationships
¶
relationships: list[TypedRelationship] | None = None
A list of related entries and their types.
revisions
¶
An optional mapping from old revision numbers to the model state at that revision.
add_missing_electrode_relationships
¶
add_missing_electrode_relationships(values)
Add any missing sample synthesis constituents to parent relationships
check_id_names
¶
check_id_names(values)
Slightly upsetting hack: this case should be covered by the pydantic setting for populating fields by alias names.
to_reference
¶
CellComponent
¶
Bases: Constituent
Attributes:
| Name | Type | Description |
|---|---|---|
item |
EntryReference | InlineSubstance
|
A reference to item (sample or starting material) entry for the constituent substance. |
quantity |
float | None
|
The amount of the constituent material used to create the sample. |
unit |
str
|
The unit symbol for the value provided in |
item
¶
item: EntryReference | InlineSubstance
A reference to item (sample or starting material) entry for the constituent substance.
quantity
¶
The amount of the constituent material used to create the sample.
unit
¶
The unit symbol for the value provided in quantity, default is mass
in grams (g) but could also refer to volumes (mL, L, etc.) or moles (mol).
check_itemhood
¶
check_itemhood(v)
Check that the reference within the constituent is to an item type.
CellFormat
¶
Attributes:
| Name | Type | Description |
|---|---|---|
coin |
|
|
cylindrical |
|
|
in_situ_nmr |
|
|
in_situ_optical |
|
|
in_situ_squid |
|
|
in_situ_xrd |
|
|
other |
|
|
pouch |
|
|
swagelok |
|