Closed dkchalmers closed 1 year ago
Thanks for the report @dkchalmers! I am able to reproduce this error on my machine as well.
Here was my output, for future reference:
I will start looking at a patch now - I think we just need to prevent that warning from being written to standard out and disrupting the output. The values that affected by the overflow error are still being treated correctly (i.e. they are just missing, as mordred
intends).
@dkchalmers I think I got it fixed, could you try this out and make sure it works for you? You can install the changes I have made over on that branch using this command: pip install git+https://github.com/JacksonBurns/mordred-community.git@develop
. Thanks again for the thorough report!
That looks to do the trick!
Thanks very much.
Cheers
David
Hi,
Thanks for your efforts in making mordred work.
I am getting this error from some (not all) compounds.
mordred/lib64/python3.11/site-packages/numpy/core/fromnumeric.py:88: RuntimeWarning: overflow encountered in reduce return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
minimal reproduction code
python3.11 -m mordred err.smi
err.smi is attached as err.smi.txt.
environment
OS/distribution
NAME="openSUSE Leap" VERSION="15.5"
conda or pip
pip
python version
Python 3.11.4
library version
python -m pip list Package Version
mordredcommunity 2.0.2 networkx 3.1 numpy 1.25.2 packaging 23.1 Pillow 10.0.0 pip 23.2.1 rdkit 2023.3.2 setuptools 68.0.0 six 1.16.0 wheel 0.41.0
rdkit 2023.03.2
err.smi.txt