Skip to content

Commit

Permalink
Better ion check
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger authored Sep 18, 2024
1 parent 65ac567 commit ec895cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prody/proteins/waterbridges.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def calcWaterBridges(atoms, **kwargs):
proteinHydrophilic, DIST_COVALENT_H, proteinHydrogens) if proteinHydrogens else []
for hydrophilic in proteinHydrophilic:
if hydrophilic is not None:
if hydrophilic in consideredAtoms.ion:
if hydrophilic.getFlag('ion'):
relations.addNode(hydrophilic, ResType.ION)
else:
relations.addNode(hydrophilic, ResType.PROTEIN)
Expand Down

0 comments on commit ec895cb

Please sign in to comment.