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
0ef5ec85
Commit
0ef5ec85
authored
Aug 08, 2017
by
peastman
Browse files
Context.getIntegrator() returns the original Python object
parent
18a7cac0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
wrappers/python/src/swig_doxygen/swigInputConfig.py
wrappers/python/src/swig_doxygen/swigInputConfig.py
+1
-0
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
+3
-0
No files found.
wrappers/python/src/swig_doxygen/swigInputConfig.py
View file @
0ef5ec85
...
@@ -90,6 +90,7 @@ SKIP_METHODS = [('State', 'getPositions'),
...
@@ -90,6 +90,7 @@ SKIP_METHODS = [('State', 'getPositions'),
(
'UpdateTimeKernel'
,),
(
'UpdateTimeKernel'
,),
(
'VdwInfo'
,),
(
'VdwInfo'
,),
(
'WcaDispersionInfo'
,),
(
'WcaDispersionInfo'
,),
(
'Context'
,
'getIntegrator'
),
(
'Context'
,
'createCheckpoint'
),
(
'Context'
,
'createCheckpoint'
),
(
'Context'
,
'loadCheckpoint'
),
(
'Context'
,
'loadCheckpoint'
),
(
'CudaPlatform'
,),
(
'CudaPlatform'
,),
...
...
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
View file @
0ef5ec85
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
%
extend
OpenMM
::
Context
{
%
extend
OpenMM
::
Context
{
%
pythoncode
%
{
%
pythoncode
%
{
def
getIntegrator
(
self
)
:
return
self
.
_integrator
def
getState
(
self
,
getPositions
=
False
,
getVelocities
=
False
,
def
getState
(
self
,
getPositions
=
False
,
getVelocities
=
False
,
getForces
=
False
,
getEnergy
=
False
,
getParameters
=
False
,
getForces
=
False
,
getEnergy
=
False
,
getParameters
=
False
,
getParameterDerivatives
=
False
,
enforcePeriodicBox
=
False
,
groups
=-
1
)
:
getParameterDerivatives
=
False
,
enforcePeriodicBox
=
False
,
groups
=-
1
)
:
...
...
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