httk.atomistic.entries.trajectories¶
Project trajectories onto the OPTIMADE trajectories entry-provider contract.
Attributes¶
Classes¶
Define the non-instantiable OPTIMADE trajectory entry family. |
|
Serve trajectory metadata and bounded frame projections. |
Module Contents¶
- class httk.atomistic.entries.trajectories.TrajectoryEntry[source]¶
Define the non-instantiable OPTIMADE trajectory entry family.
- class httk.atomistic.entries.trajectories.TrajectoryEntryProvider(entries, *, extra_definitions=None, properties=None)[source]¶
Bases:
httk.core.EntryProviderServe trajectory metadata and bounded frame projections.
Native frame lists are materialized only through
httk.atomistic.entries.trajectories.TRAJECTORY_FRAME_MATERIALIZATION_LIMIT(100) frames. Larger or record-backed trajectories still serve the entry, frame count, references, and null frame properties. Recover their frame data by re-reading the original source files or the JSONL container; partial-data serving is planned.- Parameters:
entries (collections.abc.Mapping[str, httk.atomistic.models.trajectory.like.TrajectoryLike | None] | collections.abc.Iterable[httk.atomistic.models.trajectory.like.TrajectoryLike]) – 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 trajectory entry type served by this provider.
- Returns:
The
trajectoriesentry-type definition.- Return type:
- property_keys(entry_type)[source]¶
Map served trajectory properties to storage keys.
- records(entry_type)[source]¶
Project trajectories into OPTIMADE records.
Native frame lists are served only for trajectories up to the materialization limit; larger and record-backed trajectories serve null frame properties.