Trees | Indices | Help |
|
---|
|
object --+ | dict --+ | odict.odict --+ | object --+ | | | utilities.FileUtils --+ | NDX --+ | uniqueNDX
Index that behaves like make_ndx, i.e. entries behaves as sets, not lists. The index lists behave like sets: - adding sets with '+' is equivalent to a logical OR: x + y == "x | y" - subtraction '-' is AND: x - y == "x & y" - see :meth:`~gromacs.formats.join` for ORing multiple groups (x+y+z+...) **Example** :: I = uniqueNDX('system.ndx') I['SOLVENT'] = I['SOL'] + I['NA+'] + I['CL-']
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
Return an index group that contains atoms from all groupnames. The method will silently ignore any groups that are not in the index. Example Always make a solvent group from water and ions, even if not all ions are present in all simulations: I['SOLVENT'] = I.join('SOL', 'NA+', 'K+', 'CL-') |
Transform input to the stored representation. Override eg with return set(v) for index lists as sets.
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jun 12 15:59:36 2010 | http://epydoc.sourceforge.net |