Skip to main content

PropertyKindRow

A kind of property (e.g. energy, gradient, hessian).

Usage

Source

PropertyKindRow()

Rows mirror the in-memory autostorage.property.PropertyKindRegistry, keyed by name. Validation, unit conversion, and storage dtype are looked up from the registry by name, so rows loaded from the database behave the same as freshly seeded ones. The units are also stored, so the database records what its values mean.

Attributes

Name Description
name Primary key; name of the registered property kind.
property_values The linked PropertyValueRows.
units Native units (a pint unit string) that values of this kind are stored in.

name

Primary key; name of the registered property kind.

name: str = Field(primary_key=True)


property_values

The linked PropertyValueRows.

property_values: list[PropertyValueRow] = Relationship(back_populates="property_kind")


units

Native units (a pint unit string) that values of this kind are stored in.

units: str