Commit 834f488b authored by Jason Swails's avatar Jason Swails
Browse files

Undo the change for get_by_symbol, since Travis-CI suggests that it breaks

pickleability.
parent f2e793ac
......@@ -137,7 +137,10 @@ class Element(object):
return '<Element %s>' % self.name
# 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):
return (get_by_symbol, (element.symbol,))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment