Package schrodinger :: Module structure :: Class _StructureAtomContainer
[hide private]
[frames] | no frames]

Class _StructureAtomContainer

The class to provide access to _StructureAtom instances.

Instance Methods [hide private]
 
__init__(self, ct)
Initialize the container.
 
__delitem__(self, index)
Delete an atom from the Structure.
 
__getitem__(self, index)
Return the wrapper class for atom based properties.
 
__iter__(self)
Provide iteration access.
 
__len__(self)
Return the number of atoms by querying the Structure class.
Method Details [hide private]

__init__(self, ct)
(Constructor)

 

Initialize the container. The underlying mmct is always present.

__delitem__(self, index)
(Index deletion operator)

 

Delete an atom from the Structure. Note that this immediately updates the Structure and therefore renumbers any atoms following the one deleted. You can use Structure.deleteAtoms() to easily delete multiple atoms.

__getitem__(self, index)
(Indexing operator)

 

Return the wrapper class for atom based properties. Note that the initial index is 1, as per the underlying mmct library, not 0 as is expected for python.