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

does this work with python3? #3

Open
UnixJunkie opened this issue Jan 23, 2023 · 4 comments
Open

does this work with python3? #3

UnixJunkie opened this issue Jan 23, 2023 · 4 comments

Comments

@UnixJunkie
Copy link

Traceback (most recent call last):
  File "~/src/molenc/bin/molenc_qed.py", line 52, in <module>
    main()
  File "~/src/molenc/bin/molenc_qed.py", line 44, in main
    score = qed.default(mol)
  File "~/.local/lib/python3.10/site-packages/qed/qed.py", line 269, in default
    return weights_mean(mol, gerebtzoff)
  File "~/.local/lib/python3.10/site-packages/qed/qed.py", line 252, in weights_mean
    return qed([0.66, 0.46, 0.05, 0.61, 0.06, 0.65, 0.48, 0.95], props, gerebtzoff)
  File "~/.local/lib/python3.10/site-packages/qed/qed.py", line 227, in qed
    d[i] = ads(p[i], pads1[i][0], pads1[i][1], pads1[i][2], pads1[i][3], pads1[i][4], pads1[i][5], pads1[i][6])
  File "~/.local/lib/python3.10/site-packages/qed/qed.py", line 194, in ads
    return ((a+(b/(1+exp(-1*(x-c+d/2)/e))*(1-1/(1+exp(-1*(x-c-d/2)/f))))) / dmax)
TypeError: unsupported operand type(s) for -: '_vectSt6vectorIiSaIiEE' and 'float'
@UnixJunkie
Copy link
Author

the package in pip needs to be updated.
If I use the HEAD from git, it works fine.

@UnixJunkie
Copy link
Author

i.e I had to install from sources.

@Aniket3000
Copy link

Aniket3000 commented Mar 6, 2023

There is a commit pending basically i also had to debug a lot to make the code work

added len() around getSSSR

@UnixJunkie
Copy link
Author

apparently, there is a version integrated into rdkit: https://github.com/rdkit/rdkit/blob/master/rdkit/Chem/QED.py

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