Skip to content

Commit

Permalink
float128 -> longdouble to work on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns authored Mar 1, 2024
1 parent 54b7322 commit e3368cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mordred/MolecularDistanceEdge.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from six import string_types, integer_types
import warnings
from numpy import prod, float128
from numpy import prod, longdouble

from ._base import Descriptor
from ._graph_matrix import Valence, DistanceMatrix
Expand Down Expand Up @@ -92,7 +92,7 @@ def calculate(self, D, V):
message="overflow encountered in reduce",
category=RuntimeWarning,
)
dx = prod(Dv, dtype=float128) ** (1.0 / (2.0 * n))
dx = prod(Dv, dtype=longdouble) ** (1.0 / (2.0 * n))

return n / (dx**2)

Expand Down

0 comments on commit e3368cf

Please sign in to comment.