Skip to content

Commit

Permalink
make name upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
pillose committed Jun 14, 2023
1 parent 8069406 commit cbce66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/MDAnalysis/topology/guessers.py
Expand Up @@ -206,10 +206,10 @@ def guess_atom_element(atomname):
no_symbols = re.sub(SYMBOLS, '', atomname)
no_numbers = re.split(NUMBERS, no_symbols)

if (list(filter(None, no_numbers)) == []):
if list(filter(None, no_numbers)) == []:
name = ''
else:
name = list(filter(None, no_numbers))[0]
name = list(filter(None, no_numbers))[0].upper()

# just in case
if name in tables.atomelements:
Expand Down

0 comments on commit cbce66c

Please sign in to comment.