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

CalcTPSA() doesn't use options when caching #5941

Closed
greglandrum opened this issue Jan 6, 2023 Discussed in #5925 · 0 comments
Closed

CalcTPSA() doesn't use options when caching #5941

greglandrum opened this issue Jan 6, 2023 Discussed in #5925 · 0 comments
Labels
Milestone

Comments

@greglandrum
Copy link
Member

greglandrum commented Jan 6, 2023

The name of the cached property doesn't change with the value of includeSandP, so this happens:

In [3]: mol = Chem.MolFromSmiles('OC(=O)P(=O)(O)O')

In [4]: print(Descriptors.TPSA(mol,includeSandP=True))
104.64000000000001

In [5]: print(Descriptors.TPSA(mol,includeSandP=False))
104.64000000000001

In [7]: print(Descriptors.TPSA(mol,force=True,includeSandP=False))
94.83

Discussed in #5925

@greglandrum greglandrum added the bug label Jan 6, 2023
@greglandrum greglandrum added this to the 2022_09_4 milestone Jan 6, 2023
greglandrum added a commit to greglandrum/rdkit that referenced this issue Jan 6, 2023
greglandrum added a commit that referenced this issue Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant