Skip to content

Commit

Permalink
fix findClusterCenters for None within distC of center
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Jun 7, 2024
1 parent 7010ce5 commit 5c1c589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prody/proteins/waterbridges.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,8 @@ def findClusterCenters(file_pattern, **kwargs):
removeCoords = []
for ii in range(len(coords_all)):
sel = coords_all.select('water within '+str(distC)+' of center',
center=coords_all.getCoords()[ii])
if len(sel) <= int(numC):
center=coords_all.getCoords()[ii])
if sel is not None and len(sel) <= int(numC):
removeResid.append(coords_all.getResnums()[ii])
removeCoords.append(list(coords_all.getCoords()[ii]))

Expand Down

0 comments on commit 5c1c589

Please sign in to comment.