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
834f488b
Commit
834f488b
authored
Apr 16, 2014
by
Jason Swails
Browse files
Undo the change for get_by_symbol, since Travis-CI suggests that it breaks
pickleability.
parent
f2e793ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wrappers/python/simtk/openmm/app/element.py
wrappers/python/simtk/openmm/app/element.py
+4
-1
No files found.
wrappers/python/simtk/openmm/app/element.py
View file @
834f488b
...
@@ -137,7 +137,10 @@ class Element(object):
...
@@ -137,7 +137,10 @@ class Element(object):
return
'<Element %s>'
%
self
.
name
return
'<Element %s>'
%
self
.
name
# This is for backward compatibility.
# This is for backward compatibility.
get_by_symbol
=
Element
.
getBySymbol
def
get_by_symbol
(
symbol
):
""" Get the element with a particular chemical symbol. """
s
=
symbol
.
strip
().
upper
()
return
Element
.
_elements_by_symbol
[
s
]
def
_pickle_element
(
element
):
def
_pickle_element
(
element
):
return
(
get_by_symbol
,
(
element
.
symbol
,))
return
(
get_by_symbol
,
(
element
.
symbol
,))
...
...
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