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

Ensure SD tags are parsed from OEGraphMol #1778

Merged
merged 5 commits into from
Dec 1, 2023
Merged

Ensure SD tags are parsed from OEGraphMol #1778

merged 5 commits into from
Dec 1, 2023

Conversation

mattwthompson
Copy link
Member

@mattwthompson mattwthompson commented Nov 27, 2023

Possible fix for #1711 and downstream issues

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Merging #1778 (77f83b8) into main (779565b) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Additional details and impacted files

@mattwthompson
Copy link
Member Author

This appears to fix #1776 (🇺🇸):

In [1]: from openff.toolkit.topology import Molecule

In [2]: offmol = Molecule.from_smiles('COOH')

In [3]: offmol.properties['annotation'] = 'acetic acid'

In [4]: offmol.properties
Out[4]: {'annotation': 'acetic acid'}

In [5]: microstates = offmol.enumerate_protomers()

In [6]: [print(microstate.properties) for microstate in microstates]
{'annotation': 'acetic acid'}
Out[6]: [None]

@mattwthompson mattwthompson marked this pull request as ready for review November 27, 2023 15:07
Copy link
Member

@j-wags j-wags left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I went down a rabbit hole trying to figure out if this would hit edge cases with multi-conformer mols in OETK but didn't find anything. Thanks @mattwthompson!

@j-wags j-wags merged commit 9b23790 into main Dec 1, 2023
18 checks passed
@j-wags j-wags deleted the sd-oe-graph branch December 1, 2023 00:29
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

Successfully merging this pull request may close these issues.

2 participants