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)[source]¶
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)[source]¶
Return one frame by index.
- Parameters:
i (int) – Frame index.
- Returns:
The requested unit-cell structure.
- Return type:
- frames()[source]¶
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[source]¶
Return stored reference-frame indexes, or
None.
- property species: tuple[httk.atomistic.models.species.species.Species, Ellipsis][source]¶
Return the constant distinct species.
- property species_at_sites: tuple[str, Ellipsis][source]¶
Return the constant species name at each site.
- property observable_names: tuple[str, Ellipsis][source]¶
Return the names of available per-frame observables.
- property observable_summaries: tuple[Any, Ellipsis][source]¶
Return backend-provided observable summaries, if any.