Skip to main content

IdentityStationaryLink

Association table linking chemical identities to stationary points.

Usage

Source

IdentityStationaryLink()

Removing a link from StationaryPointRow.identity_links or IdentityRow.stationary_links deletes it.

Attributes

Name Description
identity The linked IdentityRow.
identity_cache Data that makes generating identities cheaper (e.g. graph isomorphisms).
identity_id Foreign key to the linked IdentityRow.
stationary The linked StationaryPointRow.
stationary_id Foreign key to the linked StationaryPointRow.

identity

The linked IdentityRow.

identity: IdentityRow = Relationship(back_populates="stationary_links")


identity_cache

Data that makes generating identities cheaper (e.g. graph isomorphisms).

identity_cache: dict[str, Any] | None = Field(
    default=None,
    sa_column=(Column(MutableDict.as_mutable(CompressedJSONTypeDecorator()))),
)

Stored as zlib-compressed JSON. Only top-level key changes are tracked in place; reassign the dict after editing nested values. Discarded with the link when the stationary point’s geometry changes.


identity_id

Foreign key to the linked IdentityRow.

identity_id: uuid.UUID | None = _link_fk_field("identity.id")


stationary

The linked StationaryPointRow.

stationary: StationaryPointRow = Relationship(back_populates="identity_links")


stationary_id

Foreign key to the linked StationaryPointRow.

stationary_id: uuid.UUID | None = _link_fk_field("stationary_point.id")