Skip to content

Commit 228b6d7

Browse files
committed
Reverted energy in DFIRE with restraints
1 parent 71b54f8 commit 228b6d7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lightdock/scoring/dfire/driver.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,9 @@ def __call__(self, receptor, receptor_coordinates, ligand, ligand_coordinates):
180180
self.potential.dfire_energy,
181181
interface_cutoff=self.cutoff)
182182

183-
if len(receptor.restraints) and not len(ligand.restraints):
184-
return energy
185-
else:
186-
perc_receptor_restraints = ScoringFunction.restraints_satisfied(receptor.restraints, interface_receptor)
187-
perc_ligand_restraints = ScoringFunction.restraints_satisfied(ligand.restraints, interface_ligand)
188-
return energy + perc_receptor_restraints * energy + perc_ligand_restraints * energy
183+
perc_receptor_restraints = ScoringFunction.restraints_satisfied(receptor.restraints, interface_receptor)
184+
perc_ligand_restraints = ScoringFunction.restraints_satisfied(ligand.restraints, interface_ligand)
185+
return energy + perc_receptor_restraints * energy + perc_ligand_restraints * energy
189186

190187

191188
# Needed to dynamically load the scoring functions from command line

0 commit comments

Comments
 (0)