| Trees | Indices | Help |
|
|---|
|
|
object --+
|
dict --+
|
odict.odict --+
|
object --+ |
| |
utilities.FileUtils --+
|
MDP
Class that represents a Gromacs mdp run input file.
The MDP instance is an ordered dictionary.
- *Parameter names* are keys in the dictionary.
- *Comments* are sequentially numbered with keys Comment0001,
Comment0002, ...
- *Empty lines* are similarly preserved as Blank0001, ....
When writing, the dictionary is dumped in the recorded order to a
file. Inserting keys at a specific position is not possible.
Currently, comments after a parameter on the same line are
discarded. Leading and trailing spaces are always stripped.
.. SeeAlso:: For editing a mdp file one can also use
:func:`gromacs.cbook.edit_mdp` (which works like a
poor replacement for sed).
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
default_extension = Default extension for files read/written by this class. |
|||
logger = logging.getLogger('gromacs.formats.MDP')
|
|||
COMMENT = re.compile(r'\s
|
|||
PARAMETER = re.compile(r'
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Arguments:
|
Write mdp file to filename. Note Overwrites the file that the mdp was read from if no filename supplied. Keywords:
|
|
|||
PARAMETER
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Jun 12 15:59:36 2010 | http://epydoc.sourceforge.net |