Skip to content

Commit

Permalink
added H+ and e to translator
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfarinajr committed Jan 22, 2021
1 parent 2176693 commit 050e5f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rmgpy/molecule/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
multiplicity 1
1 e u0 p0 c-1
""",
'[H+]':
"""
multiplicity 1
1 H u0 p0 c+1
""",
}

#: This dictionary is used to shortcut lookups of a molecule's SMILES string from its chemical formula.
Expand All @@ -115,6 +120,8 @@
'ClH': 'Cl',
'I2': '[I][I]',
'HI': 'I',
'H': 'H+',
'e': 'e'
}

RADICAL_LOOKUPS = {
Expand All @@ -138,6 +145,7 @@
'NO': '[N]=O',
'Cl': '[Cl]',
'I': '[I]',
'e': 'e'
}


Expand Down

0 comments on commit 050e5f8

Please sign in to comment.