CodeEntropy.trajectory.source module

MDAnalysis frame access boundary.

class CodeEntropy.trajectory.source.FrameSource(universe: Any, selection: FrameSelection)[source]

Bases: object

Single owner of selected MDAnalysis trajectory frame access.

Variables:
iter_indices() Iterator[int][source]

Yield absolute selected trajectory frame indices.

iter_pairs() Iterator[tuple[int, int]][source]

Yield (local_i, absolute_frame_index) pairs.

iter_source_indices() Iterator[int][source]

Yield absolute selected trajectory frame indices.

seek(frame_index: int) Any[source]

Move the universe to an absolute trajectory frame.

Parameters:

frame_index – Absolute source-trajectory frame index.

Returns:

The MDAnalysis timestep for the selected frame.

selection: FrameSelection
universe: Any