From 6a6fc50495ce2df0eec3300a8a7d55a246c9e441 Mon Sep 17 00:00:00 2001 From: niklases Date: Wed, 6 Nov 2024 07:18:26 +0100 Subject: [PATCH] np.longfloat to np.longdouble --- pypef/utils/directed_evolution.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypef/utils/directed_evolution.py b/pypef/utils/directed_evolution.py index 4a8420b..8f95f67 100644 --- a/pypef/utils/directed_evolution.py +++ b/pypef/utils/directed_evolution.py @@ -267,9 +267,9 @@ def in_silico_de(self): with warnings.catch_warnings(): # catching Overflow warning warnings.simplefilter("ignore") try: - boltz = np.exp(((new_y - prior_y) / self.temp), dtype=np.longfloat) + boltz = np.exp(((new_y - prior_y) / self.temp), dtype=np.longdouble) if self.negative: - boltz = np.exp((-(new_y - prior_y) / self.temp), dtype=np.longfloat) + boltz = np.exp((-(new_y - prior_y) / self.temp), dtype=np.longdouble) except OverflowError: boltz = 1 p = min(1, boltz)