Skip to content

Commit

Permalink
fixed code error (line 68)
Browse files Browse the repository at this point in the history
  • Loading branch information
qcampbel committed Feb 5, 2025
1 parent 2c36751 commit 670aca1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def find_salt_bridges(
donor_atoms = self.traj.topology.select(f'resname == "{pair[0]}"')
acceptor_atoms = self.traj.topology.select(f'resname == "{pair[1]}"')

if not donor_atoms or not acceptor_atoms:
if donor_atoms.size == 0 or acceptor_atoms.size == 0:
continue

donor_nitrogens = [ # N atoms in the donor residues (e.g. Arg, Lys, His)
Expand Down

0 comments on commit 670aca1

Please sign in to comment.