An iterator over a trajectory from one or more files on disk, in fragments
This may be more memory efficient than loading an entire trajectory at once
Parameters: | filename : str
chunk : int
|
---|---|
Other Parameters: | |
top : {str, Trajectory, Topology}
stride : int, default=None
atom_indices : array_like, optional
|
See also
Examples
>>> import mdtraj as md
>>> for chunk in md.iterload('output.xtc', top='topology.pdb')
... print chunk
<mdtraj.Trajectory with 100 frames, 423 atoms at 0x110740a90>
<mdtraj.Trajectory with 100 frames, 423 atoms at 0x110740a90>
<mdtraj.Trajectory with 100 frames, 423 atoms at 0x110740a90>
<mdtraj.Trajectory with 100 frames, 423 atoms at 0x110740a90>
<mdtraj.Trajectory with 100 frames, 423 atoms at 0x110740a90>