httk.serve.optimade.schema.trajectories¶
The trajectories entry type, derived from the structures properties.
A trajectories entry describes an ordered sequence of structures
(frames). Every structures property (other than id and type) is reused
with an extra leading dim_frames dimension so it can vary per frame; that
leading dimension is declared compactable (constant) so a server MAY send a
single value when the property is constant across frames (see the specification
sections “Trajectories Entries” and “Compact list representation”). Two
trajectory-specific properties, nframes and reference_frames, are added.
When httk-atomistic is present, its TrajectoryEntryProvider serves the
vendored official OPTIMADE v1.3 definition and is the preferred route. This
helper remains for deriving a definition from a supplied structures
definition.
The source structures properties are taken from a supplied
EntryTypeDefinition (its PropertyDefinition
objects, reduced to the simplified dialect); this module produces the simplified
{"description", "properties"} dialect, which a caller turns into a full
trajectories EntryTypeDefinition via
entry_type_definition_from_simple().
Functions¶
|
Build |
Module Contents¶
- httk.serve.optimade.schema.trajectories.trajectories_entry_info(structure_definition, structure_properties)[source]¶
Build
trajectoriesentry metadata from namedstructuresproperties.structure_definitionis thestructuresEntryTypeDefinition;idandtypeare copied unwrapped (withtype’s description adjusted), every other named structures property is frame-wrapped, and the sharedlast_modifiedproperty plus the trajectory-specificnframesandreference_framesare added. The result is the simplified{"description", "properties"}dialect.- Parameters:
structure_definition (httk.core.EntryTypeDefinition) – Full
structuresentry definition.structure_properties (collections.abc.Sequence[str]) – Structure properties to carry into trajectories.
- Returns:
Simplified
trajectoriesentry metadata.- Return type: