Unverified Commit 47496e3c authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Fixed errors in generating Python docstrings (#4290)

parent e8282ad5
...@@ -50,14 +50,14 @@ namespace OpenMM { ...@@ -50,14 +50,14 @@ namespace OpenMM {
* It also allows tabulated functions to be defined and used with the computations. It optionally supports periodic boundary * It also allows tabulated functions to be defined and used with the computations. It optionally supports periodic boundary
* conditions and cutoffs for long range interactions. * conditions and cutoffs for long range interactions.
* *
* The computation consists of calculating some number of per-particle <i>computed values</i>, followed by one or more * The computation consists of calculating some number of per-particle <b>computed values</b>, followed by one or more
* <i>energy terms</i>. A computed value is a scalar value that is computed for each particle in the system. It may * <b>energy terms</b>. A computed value is a scalar value that is computed for each particle in the system. It may
* depend on an arbitrary set of global and per-particle parameters, and well as on other computed values that have * depend on an arbitrary set of global and per-particle parameters, and well as on other computed values that have
* been calculated before it. Once all computed values have been calculated, the energy terms and their derivatives * been calculated before it. Once all computed values have been calculated, the energy terms and their derivatives
* are evaluated to determine the system energy and particle forces. The energy terms may depend on global parameters, * are evaluated to determine the system energy and particle forces. The energy terms may depend on global parameters,
* per-particle parameters, and per-particle computed values. * per-particle parameters, and per-particle computed values.
* *
* When specifying a computed value or energy term, you provide an algebraic expression to evaluate and a <i>computation type</i> * When specifying a computed value or energy term, you provide an algebraic expression to evaluate and a <b>computation type</b>
* describing how the expression is to be evaluated. There are two main types of computations: * describing how the expression is to be evaluated. There are two main types of computations:
* *
* <ul> * <ul>
......
...@@ -96,7 +96,7 @@ def getText(subNodePath, node): ...@@ -96,7 +96,7 @@ def getText(subNodePath, node):
s = "%s\n\n" % s s = "%s\n\n" % s
return s.strip() return s.strip()
OPENMM_RE_PATTERN=re.compile("(.*)OpenMM:[a-zA-Z:]*:(.*)") OPENMM_RE_PATTERN=re.compile("(.*)OpenMM:[a-zA-Z0-9:]*:(.*)")
def stripOpenmmPrefix(name, rePattern=OPENMM_RE_PATTERN): def stripOpenmmPrefix(name, rePattern=OPENMM_RE_PATTERN):
try: try:
m=rePattern.search(name) m=rePattern.search(name)
......
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