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
1006797b
"wrappers/python/vscode:/vscode.git/clone" did not exist on "b619675415da2666ed773109b025da6541a7eb4a"
Commit
1006797b
authored
Oct 26, 2015
by
John Chodera (MSKCC)
Browse files
Force objects can now be pickled/unpickled
parent
cad8d293
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/swig_lib/python/extend.i
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
+8
-0
No files found.
wrappers/python/src/swig_doxygen/swig_lib/python/extend.i
View file @
1006797b
...
@@ -450,6 +450,14 @@ Parameters:
...
@@ -450,6 +450,14 @@ Parameters:
%
extend
OpenMM
::
Force
{
%
extend
OpenMM
::
Force
{
%
pythoncode
%
{
%
pythoncode
%
{
def
__getstate__
(
self
)
:
serializationString
=
XmlSerializer
.
serialize
(
self
)
return
serializationString
def
__setstate__
(
self
,
serializationString
)
:
system
=
XmlSerializer
.
deserialize
(
serializationString
)
self
.
this
=
system
.
this
def
__copy__
(
self
)
:
def
__copy__
(
self
)
:
copy
=
self
.
__class__
.
__new__
(
self
.
__class__
)
copy
=
self
.
__class__
.
__new__
(
self
.
__class__
)
copy
.
__init__
(
self
)
copy
.
__init__
(
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