Skip to content

RuntimeWarning: invalid value encountered in scalar power #18

@LucaCappelletti94

Description

@LucaCappelletti94

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions