schrodinger :: trajectory :: atomselection :: FrameSliceSelection :: Class FrameSliceSelection
[hide private]
[frames] | no frames]

Class FrameSliceSelection

object --+
         |
        FrameSliceSelection

A class for efficiently selecting a range of atoms.

Instance Methods [hide private]
 
__init__(self, slice_)
Initialize a slice selection.
 
isDynamic(self)
Returns: A bool indicating whether this selection changes from frame to frame.
 
getArraySelection(self, frame)
Returns: An object that can be used as an index in a numpy array.
 
getOffsets(self, frame)
Returns: A selection as a sequence of integers, using zero based indexing so it can be used with a numpy array.
 
getAtomIndices(self, frame)
Returns: A selection as a sequence of integers, using one based indexing so it can be used with a Structure.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, slice_)
(Constructor)

 

Initialize a slice selection. Because this selection mimics behavior of the python slice object, input values are zero-based indices.

Overrides: object.__init__

isDynamic(self)

 
Returns:
A bool indicating whether this selection changes from frame to frame.

getArraySelection(self, frame)

 
Returns:
An object that can be used as an index in a numpy array.

getOffsets(self, frame)

 
Returns:
A selection as a sequence of integers, using zero based indexing so it can be used with a numpy array.

getAtomIndices(self, frame)

 
Returns:
A selection as a sequence of integers, using one based indexing so it can be used with a Structure.