Combine multiple index file into a single one and return appropriate kwargs.
Calling the method combines multiple index files into a a single
temporary one so that Gromacs tools that do not (yet) support multi
file input for index files can be used transparently as if they did.
If a temporary index file is required then it is deleted once the
object is destroyed.
:Returns:
The method returns the input keyword arguments with the necessary
changes to use the temporary index files.
:Keywords:
Only the listed keywords have meaning for the method:
*n* : filename or list of filenames
possibly multiple index files; *n* is replaced by the name of
the temporary index file.
*s* : filename
structure file (tpr, pdb, ...) or ``None``; if a structure file is
supplied then the Gromacs default index groups are automatically added
to the temporary indexs file.
:Example:
Used in derived classes that replace the standard
:meth:`run` (or :meth:`__init__`) methods with something like::
def run(self,*args,**kwargs):
kwargs = self._fake_multi_ndx(**kwargs)
return super(G_mindist, self).run(*args, **kwargs)
|