Commit 76519691 authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #1876 from jchodera/fix-docs

Fix sphinx errors
parents ad0ee95f d00ab6b4
...@@ -14,8 +14,11 @@ def process_docstring(app, what, name, obj, options, lines): ...@@ -14,8 +14,11 @@ def process_docstring(app, what, name, obj, options, lines):
s = m.group(1) s = m.group(1)
if not s.startswith(linesep): if not s.startswith(linesep):
s = linesep + s s = linesep + s
newline = '|LINEBREAK|.. admonition:: Deprecated' + linesep newline = '|LINEBREAK|.. admonition::|LINEBREAK| Deprecated' + linesep
return newline + ' ' + s.replace(linesep, linesep + ' ') return newline + ' ' + s.replace(linesep, linesep + ' ')
def repl3(m):
s = m.group(1)
return '*' + s + '*'
linesep = '|LINEBREAK|' linesep = '|LINEBREAK|'
joined = linesep.join(lines) joined = linesep.join(lines)
...@@ -23,6 +26,7 @@ def process_docstring(app, what, name, obj, options, lines): ...@@ -23,6 +26,7 @@ def process_docstring(app, what, name, obj, options, lines):
joined = re.sub(r'<tt><pre>((|LINEBREAK|)?.*?)</pre></tt>', repl, joined) joined = re.sub(r'<tt><pre>((|LINEBREAK|)?.*?)</pre></tt>', repl, joined)
joined = re.sub(r'<tt>(.*?)</tt>', repl, joined) joined = re.sub(r'<tt>(.*?)</tt>', repl, joined)
joined = re.sub(r'@deprecated(.*?\|LINEBREAK\|)', repl2, joined, flags=re.IGNORECASE) joined = re.sub(r'@deprecated(.*?\|LINEBREAK\|)', repl2, joined, flags=re.IGNORECASE)
joined = re.sub(r'<i>(.*?)</i>', repl3, joined)
lines[:] = [(l if not l.isspace() else '') for l in joined.split(linesep)] lines[:] = [(l if not l.isspace() else '') for l in joined.split(linesep)]
......
...@@ -117,22 +117,23 @@ class CharmmPsfFile(object): ...@@ -117,22 +117,23 @@ class CharmmPsfFile(object):
This structure has numerous attributes that are lists of the elements of This structure has numerous attributes that are lists of the elements of
this structure, including atoms, bonds, torsions, etc. The attributes are this structure, including atoms, bonds, torsions, etc. The attributes are
- residue_list
- atom_list - residue_list
- bond_list - atom_list
- angle_list - bond_list
- dihedral_list - angle_list
- dihedral_parameter_list - dihedral_list
- improper_list - dihedral_parameter_list
- cmap_list - improper_list
- donor_list # hbonds donors? - cmap_list
- acceptor_list # hbond acceptors? - donor_list # hbonds donors?
- group_list # list of nonbonded interaction groups - acceptor_list # hbond acceptors?
- group_list # list of nonbonded interaction groups
Additional attribute is available if a CharmmParameterSet is loaded into Additional attribute is available if a CharmmParameterSet is loaded into
this structure. this structure.
- urey_bradley_list - urey_bradley_list
The lengths of each of these lists gives the pointers (e.g., natom, nres, The lengths of each of these lists gives the pointers (e.g., natom, nres,
etc.) etc.)
...@@ -713,7 +714,7 @@ class CharmmPsfFile(object): ...@@ -713,7 +714,7 @@ class CharmmPsfFile(object):
solvent. solvent.
implicitSolventSaltConc : float=0.0*u.moles/u.liter implicitSolventSaltConc : float=0.0*u.moles/u.liter
Salt concentration for GB simulations. Converted to Debye length Salt concentration for GB simulations. Converted to Debye length
`kappa' ``kappa``
temperature : float=298.15*u.kelvin temperature : float=298.15*u.kelvin
Temperature used in the salt concentration-to-kappa conversion for Temperature used in the salt concentration-to-kappa conversion for
GB salt concentration term GB salt concentration term
......
...@@ -445,17 +445,19 @@ class ForceField(object): ...@@ -445,17 +445,19 @@ class ForceField(object):
generator : function generator : function
A function that will be called when a residue is encountered that does not match an existing forcefield template. A function that will be called when a residue is encountered that does not match an existing forcefield template.
When a residue without a template is encountered, the `generator` function is called with: When a residue without a template is encountered, the ``generator`` function is called with:
:: ::
success = generator(forcefield, residue) success = generator(forcefield, residue)
```
where `forcefield` is the calling `ForceField` object and `residue` is a simtk.openmm.app.topology.Residue object. where ``forcefield`` is the calling ``ForceField`` object and ``residue`` is a simtk.openmm.app.topology.Residue object.
``generator`` must conform to the following API:
`generator` must conform to the following API:
:: ::
Parameters generator API
Parameters
---------- ----------
forcefield : simtk.openmm.app.ForceField forcefield : simtk.openmm.app.ForceField
The ForceField object to which residue templates and/or parameters are to be added. The ForceField object to which residue templates and/or parameters are to be added.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment