Skip to content
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

RuntimeWarning: invalid value encountered in scalar power #18

Open
LucaCappelletti94 opened this issue Oct 6, 2024 · 1 comment
Open

Comments

@LucaCappelletti94
Copy link

Hi! Great idea maintaining Mordred! I wanted to let you know that, for some smiles, this line will introduce NaNs into the fingerprint raising the following error:

/home/cappelle/miniconda3/lib/python3.12/site-packages/mordred/_matrix_attributes.py:251: RuntimeWarning: invalid value encountered in scalar power
  s += (eig.vec[i, eig.max] * eig.vec[j, eig.max]) ** -0.5

I encountered this error when computing fingerprints for a large number of smiles, so it is a bit hard to understand which ones were the culprit. I will report them here if I identify them, but I thought important to let you know that it can indeed happen.

@JacksonBurns
Copy link
Owner

Hi @LucaCappelletti94 thanks for the kind words.

I've seen this error as well, but never tried to really track it down. I look forward to seeing the SMILES you identify that can cause this - I am sure we can figure it out with that information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants