Closed dr-aspirinas closed 9 months ago
@dr-aspirinas thanks for the suggestion! Do you notice any timing differences with this change?
@JacksonBurns, no I haven't noticed any slowdown.
Great! I have implemented this in #12, could you take a look and make sure it looks good? I had to use longdouble
instead of float128
, since it turned out the latter is only a valid alias on unix-based platforms.
Hi Jackson,
I am also interested in maintaining mordred because they are quite handy. Although you silenced the warning concerning overflow, this avoids some descriptors to be calculated. I found that there is another way to avoid overflowing (not throwing an error at all). Just modify the code like this:
from numpy import product
from numpy import product, array, float128
I have tested with the largest molecule that I could think of (cyclosporin, MW ~1200 Da) without errors. Only with PEG-2000 (MW 2000 Da) I got the error again (so it is related with size).
Hope it helps!