httk.atomistic.models.trajectory.jsonl¶
Stream the neutral trajectory JSONL payload lazily.
Classes¶
Stream a neutral |
Module Contents¶
- class httk.atomistic.models.trajectory.jsonl.JsonlTrajectory(source, **hints)[source]¶
Bases:
httk.atomistic.models.trajectory.backend.TrajectoryBackendStream a neutral
httk-trajectory-jsonlpayload or path lazily.Frame data remains in the JSONL container and is read as requested.
- Parameters:
source (Any) – A JSONL payload or path to one.
**hints (Any) – Backend-selection hints.
- property header: collections.abc.Mapping[str, Any][source]¶
Return the neutral JSONL header mapping.
- 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 reference_frames: tuple[int, Ellipsis] | None[source]¶
Return stored reference-frame indexes, or
None.
- property observable_names: tuple[str, Ellipsis][source]¶
Return the names of available per-frame observables.
- frame(i)[source]¶
Read one frame from the JSONL container.
- Parameters:
i (int) – Frame index.
- Returns:
The requested unit-cell structure.
- Raises:
IndexError – If the frame index is out of range.
- Return type: