Skip to content

Commit

Permalink
np.longfloat to np.longdouble
Browse files Browse the repository at this point in the history
  • Loading branch information
niklases committed Nov 6, 2024
1 parent 630aac8 commit 6a6fc50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypef/utils/directed_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a6fc50

Please sign in to comment.