Skip to content

Commit

Permalink
Update guessers.py
Browse files Browse the repository at this point in the history
remove unnecessary code
  • Loading branch information
pillose authored Aug 16, 2023
1 parent 9d30a1e commit 575e6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/MDAnalysis/topology/guessers.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def guess_atom_element(atomname):
no_numbers = re.split(NUMBERS, no_symbols)
no_numbers = list(filter(None, no_numbers)) #remove ''
# if no_numbers is not empty, use the first element of no_numbers
name = list(filter(None, no_numbers))[0].upper() if no_numbers else ''
name = no_numbers[0].upper() if no_numbers else ''

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

0 comments on commit 575e6eb

Please sign in to comment.