httk.atomistic.models.trajectory.view¶
Present trajectory backends through the lazy canonical view.
Classes¶
Present any trajectory backend through the canonical trajectory API. |
Module Contents¶
- class httk.atomistic.models.trajectory.view.TrajectoryView(obj, **hints)¶
Bases:
httk.core.View[httk.atomistic.models.trajectory.backend.TrajectoryBackend],httk.atomistic.models.trajectory.api.TrajectoryAPIPresent any trajectory backend through the canonical trajectory API.
- Parameters:
obj (Any) – A trajectory backend or another accepted trajectory value.
**hints (Any) – Backend-selection hints.
- frame(i)¶
Return one frame by index.
- Parameters:
i (int) – Frame index.
- Returns:
The requested unit-cell structure.
- Return type:
- frames()¶
Iterate over the frames.
- Returns:
An iterator of unit-cell structures.
- Return type:
collections.abc.Iterator[httk.atomistic.models.structure.unitcell.UnitcellStructure]
- property reference_frames: tuple[int, Ellipsis] | None¶
Return stored reference-frame indexes, or
None.
- property species: tuple[httk.atomistic.models.species.species.Species, Ellipsis]¶
Return the constant distinct species.
- property observable_names: tuple[str, Ellipsis]¶
Return the names of available per-frame observables.
- property observable_summaries: tuple[Any, Ellipsis]¶
Return backend-provided observable summaries, if any.
- property last_modified: Any¶
Return the backend modification marker, if available.
- observable(name)¶
Return one observable’s values in frame order.
- unwrap()¶
Return the original value wrapped by the backend.