forked from mordred-descriptor/mordred
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overflow Error #11
Comments
@dr-aspirinas thanks for the suggestion! Do you notice any timing differences with this change? |
@JacksonBurns, no I haven't noticed any slowdown. |
JacksonBurns
added a commit
that referenced
this issue
Mar 1, 2024
Great! I have implemented this in #12, could you take a look and make sure it looks good? I had to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
The text was updated successfully, but these errors were encountered: