msmbuilder.Trajectory.Trajectory.load_from_lhdf¶
- classmethod Trajectory.load_from_lhdf(TrajFilename, JustInspect=False, precision=1000, Stride=None, AtomIndices=None, ChunkSize=50000)[source]¶
Method to load a trajectory which was saved as LHDF
Inputs: - TrajFilename: Filename to find the trajectory - JustInspect [False]: If True, then the method returns the shape of the
XYZList stored on diskStride [None]: Integer number of frames to subsample the trajectory
precision [1000]: precision used when saving as lossy integers
AtomIndices [None]: np.ndarray of atom indices to read in (0-indexed)
- ChunkSize [100000]: Integer number of frames to read in a chunk
- NOTE: ChunkSize will change in order to be a multiple of the input Stride
This is necessary in order to make sure the Stride and chunks line up
Outputs: - A: Trajectory instance read from disk