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
cad8d293
Commit
cad8d293
authored
Oct 26, 2015
by
John Chodera (MSKCC)
Browse files
Revert integrator deepcopy
parent
7a22ce95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
+6
-4
No files found.
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
View file @
cad8d293
...
...
@@ -454,6 +454,7 @@ Parameters:
copy
=
self
.
__class__
.
__new__
(
self
.
__class__
)
copy
.
__init__
(
self
)
return
copy
def
__deepcopy__
(
self
,
memo
)
:
return
self
.
__copy__
()
%
}
...
...
@@ -469,11 +470,12 @@ Parameters:
system
=
XmlSerializer
.
deserialize
(
serializationString
)
self
.
this
=
system
.
this
def
__copy__
(
self
)
:
copy
=
self
.
__class__
.
__new__
(
self
.
__class__
)
copy
.
__init__
(
self
)
return
copy
def
__deepcopy__
(
self
,
memo
)
:
return
self
.
__copy__
()
%
}
%
newobject
__copy__
;
OpenMM
::
Integrator
*
__copy__
()
{
return
OpenMM
::
XmlSerializer
::
clone
<
OpenMM
::
Integrator
>
(
*
self
)
;
}
}
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