Skip to main content

PropertyValueRow

Property value for a specific geometry and calculation.

Usage

Source

PropertyValueRow()

Attributes

Name Description
calculation The linked CalculationRow.
calculation_id Foreign key to the linked CalculationRow.
geometry The linked GeometryRow.
geometry_id Foreign key to the linked GeometryRow.
id Primary key.
property_kind The linked PropertyKindRow.
property_kind_name Foreign key to the linked PropertyKindRow (e.g. "energy").
value Value produced by geometry and calculation, as a NumPy array.

calculation

The linked CalculationRow.

calculation: CalculationRow = Relationship(back_populates="properties")


calculation_id

Foreign key to the linked CalculationRow.

calculation_id: uuid.UUID | None = _fk_field("calculation.id")


geometry

The linked GeometryRow.

geometry: GeometryRow = Relationship(back_populates="properties")


geometry_id

Foreign key to the linked GeometryRow.

geometry_id: uuid.UUID | None = _fk_field("geometry.id")


id

Primary key.

id: uuid.UUID | None = Field(default_factory=(uuid.uuid4), primary_key=True)


property_kind

The linked PropertyKindRow.

property_kind: PropertyKindRow = Relationship(back_populates="property_values")


property_kind_name

Foreign key to the linked PropertyKindRow (e.g. "energy").

property_kind_name: str | None = _fk_field("property_kind.name")


value

Value produced by geometry and calculation, as a NumPy array.

value: Any = Field(sa_column=(Column(CompressedArrayTypeDecorator(dtype=None))))

Stored in the property kind’s native units. On flush, a pint.Quantity is converted to those units, and other values are assumed to be in them already. The value is then validated and cast to the kind’s dtype (float64, except float32 for Hessians), so it may be assigned as a float, sequence, array, or quantity.