Skip to content

Commit

Permalink
fix doctest on python3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
philopon committed Feb 26, 2019
1 parent e2ccfd8 commit d891351
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mordred/_atomic_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def map(self, f):
_table = Chem.GetPeriodicTable()


GetElementSymbol = _table.GetElementSymbol
def GetElementSymbol(i):
return _table.GetElementSymbol(i)


if six.PY2:
Expand All @@ -121,7 +122,8 @@ def GetAtomicNumber(symbol):
symbol = str(symbol)
return _table.GetAtomicNumber(symbol)
else:
GetAtomicNumber = _table.GetAtomicNumber
def GetAtomicNumber(symbol):
return _table.GetAtomicNumber(symbol)


# http://dx.doi.org/10.1002%2Fjps.2600721016
Expand Down

0 comments on commit d891351

Please sign in to comment.