Skip to content

Commit

Permalink
step=True leads to rejection of bad fitness
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schwalbe-Koda committed Jul 31, 2020
1 parent eaf2c13 commit 596aaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moldocker/fitness/threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_distances(self, complex):

def normalize(self, value):
if self.step:
return 0 if value > 0 else -1
return 0 if value > 0 else -np.inf
return value


Expand Down

0 comments on commit 596aaa2

Please sign in to comment.