From df6d8492da9ab7efefbd4a53988342244aa4fbc7 Mon Sep 17 00:00:00 2001 From: Nathan Baker Date: Sat, 23 May 2020 09:31:23 -0700 Subject: [PATCH] Simplify bonded atom counting Co-authored-by: Oliver Beckstein --- propka/atom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/propka/atom.py b/propka/atom.py index 2e92bbe..c98582e 100644 --- a/propka/atom.py +++ b/propka/atom.py @@ -141,8 +141,7 @@ class Atom(object): Returns: list of atoms. """ - array = [ba for ba in self.bonded_atoms if ba.element != 'H'] - return array + return [ba for ba in self.bonded_atoms if ba.element != 'H'] def is_atom_within_bond_distance(self, other_atom, max_bonds, cur_bond): """Check if is found within bonds of self.