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
a1372d52
Commit
a1372d52
authored
Oct 26, 2015
by
John Chodera (MSKCC)
Browse files
Revert force deepcopy code to earlier working version.
parent
c82f3c18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
+4
-4
No files found.
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
View file @
a1372d52
...
@@ -450,13 +450,13 @@ Parameters:
...
@@ -450,13 +450,13 @@ Parameters:
%
extend
OpenMM
::
Force
{
%
extend
OpenMM
::
Force
{
%
pythoncode
%
{
%
pythoncode
%
{
def
__copy__
(
self
)
:
copy
=
self
.
__class__
.
__new__
(
self
.
__class__
)
copy
.
__init__
(
self
)
return
copy
def
__deepcopy__
(
self
,
memo
)
:
def
__deepcopy__
(
self
,
memo
)
:
return
self
.
__copy__
()
return
self
.
__copy__
()
%
}
%
}
%
newobject
__copy__
;
OpenMM
::
Force
*
__copy__
()
{
return
OpenMM
::
XmlSerializer
::
clone
<
OpenMM
::
Force
>
(
*
self
)
;
}
}
}
%
extend
OpenMM
::
Integrator
{
%
extend
OpenMM
::
Integrator
{
...
...
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