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

MolEnumerator is not propagating query information to molecules #6014

Closed
greglandrum opened this issue Jan 26, 2023 · 0 comments
Closed

MolEnumerator is not propagating query information to molecules #6014

greglandrum opened this issue Jan 26, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@greglandrum
Copy link
Member

greglandrum commented Jan 26, 2023

Describe the bug
Here's the reproducible:

In [61]: qry = Chem.MolFromSmarts("O-[CX4]-[CH3] |LN:1:1.5|")

In [62]: bndl = rdMolEnumerator.Enumerate(qry)

In [63]: Chem.MolToSmarts(bndl[0])
Out[63]: '[#8]-[#6]-[#6H3]'

In [64]: bndl[0].GetAtomWithIdx(2).HasQuery()
Out[64]: False

All of the atoms in the bundle molecules should have queries.

The root cause of this is #6015

Configuration (please complete the following information):

  • RDKit version: current release and master
  • OS: all
@greglandrum greglandrum self-assigned this Jan 26, 2023
greglandrum added a commit to greglandrum/rdkit that referenced this issue Jan 26, 2023
Fixes rdkit#6014  (since it was due to rdkit#6015)
@greglandrum greglandrum added this to the 2022_09_5 milestone Jan 26, 2023
greglandrum added a commit that referenced this issue Feb 23, 2023
* add tests

* remove a compiler warning

* Fixes #6015
Fixes #6014  (since it was due to #6015)

* fix a leak
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