| Trees | Indices | Help |
|
|---|
|
|
object --+
|
Frame
This class, as its name suggests, represents a single trajectory frame. So far, we allow a frame to be mutated in the following ways: - Assign a new chemical time - Reduce to a subset of particles - Coordinates of all particles are translated We call changes generally as ``decorations''. They might not make into the frame data, or at least not immediately. Why? This avoids making multiple expensive copies of the data.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
time = property(_getTime, _setTime)
|
|||
|
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
str(x)
|
Makes a copy of the native trajectory-frame object and decorates the copied object if necessary.
|
Solidifies decorations. If there are decorations or |
Return a copy of this |
|
Return the position vector(s).
@type i: Any of the following types:
C{None}: Return the whole position-vector array;
C{int} : C{i} should be a GID, and this function return
position vector of the particle C{i}.
C{Iterable}: C{i} should be a "list" of GIDs, and this function
returns a NEW numpy array of position-vectors of the
specified particles.
|
Return the velocity vector(s).
This method may throw if this frame doesn't have velocity data.
@type i: Any of the following types:
C{None}: Return the whole velocity-vector array;
C{int} : C{i} should be a GID, and this function return
velocity vector of the particle C{i}.
C{Iterable}: C{i} should be a "list" of GIDs, and this function
returns a NEW numpy array of position-vectors of the
specified particles.
|
|
Keep only the atoms specified by
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jan 25 01:17:53 2017 | http://epydoc.sourceforge.net |