Skip to content

Commit

Permalink
Merge pull request #2 from Zsailer/sq_cutoff
Browse files Browse the repository at this point in the history
square cutoff distance to match units
  • Loading branch information
harmsm committed Mar 10, 2015
2 parents dcfb00d + 25f5e0b commit 038d7d2
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 038d7d2

Please sign in to comment.