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
bd232057
Commit
bd232057
authored
Jul 03, 2013
by
Robert McGibbon
Browse files
Add an __all__ to openmm.py so that XXX_swigregister functions don't get imported
parent
73f7c14e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
wrappers/python/src/swig_doxygen/OpenMM.i
wrappers/python/src/swig_doxygen/OpenMM.i
+8
-0
No files found.
wrappers/python/src/swig_doxygen/OpenMM.i
View file @
bd232057
...
...
@@ -64,6 +64,14 @@ using namespace OpenMM;
%
include
OpenMM_headers
.
i
%
pythoncode
%
{
#
when
we
import
*
from
the
python
module
,
we
only
want
to
import
the
#
actual
classes
,
and
not
the
swigregistration
methods
,
which
have
already
#
been
called
,
and
are
now
unneeded
by
the
user
code
,
and
only
pollute
the
#
namespace
__all__
=
[
k
for
k
in
locals
()
.
keys
()
if
not
k
.
endswith
(
'
_swigregister
'
)]
%
}
/*
%extend OpenMM::XmlSerializer {
%template(XmlSerializer_serialize_AndersenThermostat) XmlSerializer::serialize<AndersenThermostat>;
...
...
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