From 596aaa2ce394f7097cec545f72a4da838f0f58ef Mon Sep 17 00:00:00 2001 From: Daniel Schwalbe-Koda Date: Fri, 31 Jul 2020 11:00:46 -0400 Subject: [PATCH] step=True leads to rejection of bad fitness --- moldocker/fitness/threshold.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moldocker/fitness/threshold.py b/moldocker/fitness/threshold.py index dc0b8b8..5d85f23 100644 --- a/moldocker/fitness/threshold.py +++ b/moldocker/fitness/threshold.py @@ -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