Skip to content

Commit

Permalink
square cutoff distance to match units
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Mar 9, 2015
1 parent dcfb00d commit 25f5e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdb_contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def pdbContacting(pdb,target,cutoff,target_type="resname"):
for t in target_list:
contacts = []
for a in all_coord:
if sum([(a[1][i]-t[1][i])**2 for i in range(3)]) < cutoff:
if sum([(a[1][i]-t[1][i])**2 for i in range(3)]) < cutoff_sq:

# ignore self
if t[0] == a[0]:
Expand Down

0 comments on commit 25f5e0b

Please sign in to comment.