Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
4ca69ecc
"vscode:/vscode.git/clone" did not exist on "ff6a4830162880da66b181c26166459e7e761aa1"
Commit
4ca69ecc
authored
Dec 17, 2011
by
Peter Eastman
Browse files
Fixed Python API builder to handle CustomIntegrator
parent
50154b8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
openmmapi/include/OpenMM.h
openmmapi/include/OpenMM.h
+1
-0
wrappers/python/src/swig_doxygen/swigInputBuilder.py
wrappers/python/src/swig_doxygen/swigInputBuilder.py
+2
-1
wrappers/python/src/swig_doxygen/swigInputConfig.py
wrappers/python/src/swig_doxygen/swigInputConfig.py
+2
-0
No files found.
openmmapi/include/OpenMM.h
View file @
4ca69ecc
...
...
@@ -42,6 +42,7 @@
#include "openmm/CustomExternalForce.h"
#include "openmm/CustomGBForce.h"
#include "openmm/CustomHbondForce.h"
#include "openmm/CustomIntegrator.h"
#include "openmm/CustomNonbondedForce.h"
#include "openmm/Force.h"
#include "openmm/GBSAOBCForce.h"
...
...
wrappers/python/src/swig_doxygen/swigInputBuilder.py
View file @
4ca69ecc
...
...
@@ -392,12 +392,13 @@ class SwigInputBuilder:
key
=
(
shortClassName
,
methName
)
#print "key %s %s \n" % (shortClassName, methName)
addText
=
''
returnType
=
getText
(
"type"
,
memberNode
)
if
key
in
self
.
configModule
.
UNITS
:
valueUnits
=
self
.
configModule
.
UNITS
[
key
]
elif
(
"*"
,
methName
)
in
self
.
configModule
.
UNITS
:
valueUnits
=
self
.
configModule
.
UNITS
[(
"*"
,
methName
)]
elif
methName
.
startswith
(
'get'
):
elif
methName
.
startswith
(
'get'
)
and
returnType
not
in
(
'void'
,
'int'
,
'std::string'
)
:
s
=
'do not know how to add units to %s::%s'
\
%
(
shortClassName
,
methName
)
raise
Exception
(
s
)
...
...
wrappers/python/src/swig_doxygen/swigInputConfig.py
View file @
4ca69ecc
...
...
@@ -102,6 +102,7 @@ SKIP_METHODS = [('State',),
(
'IntegrateVariableLangevinStepKernel'
,),
(
'IntegrateVariableVerletStepKernel'
,),
(
'IntegrateVerletStepKernel'
,),
(
'IntegrateCustomStepKernel'
,),
(
'Kernel'
,),
(
'KernelFactory'
,),
(
'KernelImpl'
,),
...
...
@@ -187,6 +188,7 @@ UNITS = {
(
"*"
,
"getErrorTolerance"
)
:
(
None
,
()),
(
"*"
,
"getEwaldErrorTolerance"
)
:
(
None
,
()),
(
"*"
,
"getFriction"
)
:
(
"1/unit.picosecond"
,
()),
(
"*"
,
"getGlobalVariable"
)
:
(
None
,
()),
(
"*"
,
"getIntegrator"
)
:
(
None
,
()),
(
"*"
,
"getMapParameters"
)
:
(
None
,
()),
(
"*"
,
"getName"
)
:
(
None
,
()),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment