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)¶
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]¶
Return the neutral JSONL header mapping.
- property species: tuple[httk.atomistic.models.species.species.Species, Ellipsis]¶
Return the constant distinct species.
- property reference_frames: tuple[int, Ellipsis] | None¶
Return stored reference-frame indexes, or
None.
- property observable_names: tuple[str, Ellipsis]¶
Return the names of available per-frame observables.
- observable(name)¶
Read one observable’s values in frame order.
- frame(i)¶
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:
- frames()¶
Stream all frames from the JSONL container.
- Yields:
Unit-cell structures in container order.
- unwrap()¶
Return the original JSONL source payload or path.