httk.atomistic.entries.structures¶
Project atomistic structures onto the neutral OPTIMADE entry-provider contract.
Classes¶
Define the non-instantiable OPTIMADE structure entry family. |
|
Serve complete OPTIMADE v1.3 structure records from atomistic structures. |
Module Contents¶
- class httk.atomistic.entries.structures.StructureEntry[source]¶
Define the non-instantiable OPTIMADE structure entry family.
- class httk.atomistic.entries.structures.StructureEntryProvider(entries, *, extra_definitions=None, properties=None)[source]¶
Bases:
httk.core.EntryProviderServe complete OPTIMADE v1.3 structure records from atomistic structures.
A mapping keeps the convenient
{"example": structure}form and its explicit served ids. An iterable of natural structures uses each representation’s structural content id. Entry metadata lives on the structures themselves.Custom properties may extend the schema, but standard OPTIMADE fields are a pure projection of the entry and structure and cannot be replaced by custom values.
- Parameters:
entries (collections.abc.Mapping[str, httk.atomistic.models.structure.like.StructureLike | None] | collections.abc.Iterable[httk.atomistic.models.structure.like.StructureLike]) – Entries keyed by explicit ids, or entries whose ids are derived from their representations; explicit entries may be
None.extra_definitions (collections.abc.Mapping[str, httk.core.PropertyDefinition] | None) – Additional property definitions to expose.
properties (collections.abc.Mapping[str, collections.abc.Mapping[str, Any]] | None) – Per-entry custom property values validated against the definition.
- entry_types()[source]¶
Return the structure entry type served by this provider.
- Returns:
The
structuresentry-type definition.- Return type:
- property_keys(entry_type)[source]¶
Map served structure properties to storage keys.