Reference¶
An example of a custom item plugin.
Attributes:
| Name | Type | Description |
|---|---|---|
__version__ |
|
Solution
¶
Bases: Sample
A solution of a single solute at a stated concentration.
Attributes:
| Name | Type | Description |
|---|---|---|
concentration |
float | None
|
|
concentration_display_unit |
Literal['mol/L', 'mmol/L'] | None
|
Presentation preference only; |
model_config |
|
|
solute |
EntryReference | None
|
|
solvent |
EntryReference | None
|
|
type |
Literal['solutions']
|
|
concentration
¶
concentration: float | None = Field(None, ge=0, json_schema_extra={'datalab_include_field_in_summary': True, 'datalab_quantity': {'canonical_unit': 'mol/L', 'display_units': {'mol/L': {'scale': 1.0}, 'mmol/L': {'scale': 0.001}}, 'default_display_unit': 'mol/L', 'display_unit_field': 'concentration_display_unit'}})
concentration_display_unit
¶
concentration_display_unit: Literal['mol/L', 'mmol/L'] | None = None
Presentation preference only; concentration always uses mol/L.
model_config
¶
model_config = ConfigDict(title='Solution', json_schema_extra={'datalab_ui_color': '#3a7ca5', 'datalab_ui_hidden_fields': ['synthesis_information'], 'datalab_section_title': 'Solution'})
solute
¶
solute: EntryReference | None = Field(None, json_schema_extra={'datalab_ref_types': _SUBSTANCE_REF_TYPES})