MDAnalysisTrajectory

class narupatools.mdanalysis.trajectory.MDAnalysisTrajectory(universe: MDAnalysis.core.universe.Universe)

Wrapper around an MDAnalysis universe to serve as a trajectory source.

Inheritance

Inheritance diagram of MDAnalysisTrajectory

Methods

__init__

Initialize self.

create_from_object

Attempt to convert an arbitrary object to a trajectory source.

get_frame

Create a FrameData representation, with the given fields present if available.

__init__(universe: MDAnalysis.core.universe.Universe)

Initialize self. See help(type(self)) for accurate signature.

static create_from_object(obj: Any)Optional[narupatools.frame.frame_source.TrajectorySource]

Attempt to convert an arbitrary object to a trajectory source.

get_frame(*, index: int, fields: infinite_sets.infinite_sets.InfiniteSet[str])narupa.trajectory.frame_data.FrameData

Create a FrameData representation, with the given fields present if available.

Parameters
  • index – Index of frame to get.

  • fields – Collection of fields that should be added to FrameData if available.