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

Ez multi #51

Merged
merged 5 commits into from
Dec 3, 2024
Merged

Ez multi #51

merged 5 commits into from
Dec 3, 2024

Conversation

fgrunewald
Copy link
Collaborator

@fgrunewald fgrunewald commented Dec 2, 2024

This PR fixes E/Z assignment for some edge cases (e.g. F\C=C\C=C\F). In addition, it raises an error for invalid SMILES like (F\)C=C. In doing so it unfixes extended CIS/TRANS (e.g. F\C=C=C=C\F). I think it is worth not including these at the moment. It does throw an error for the extended CIS/TRANS. It also handles multiple CIS/TRANS per double bond (e.g. C(\F)(/F)=C(/Cl)(\Br) and checks if they are compatible.

@fgrunewald fgrunewald requested a review from pckroon December 2, 2024 19:23
Copy link
Owner

@pckroon pckroon left a comment

Choose a reason for hiding this comment

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

Nice. Just some small comments. I'll give the CI a kick to see if it's reproducible.

pysmiles/smiles_helper.py Outdated Show resolved Hide resolved
pysmiles/smiles_helper.py Outdated Show resolved Hide resolved
pysmiles/smiles_helper.py Outdated Show resolved Hide resolved
pysmiles/smiles_helper.py Outdated Show resolved Hide resolved
pysmiles/smiles_helper.py Outdated Show resolved Hide resolved
fgrunewald and others added 2 commits December 3, 2024 14:14
Co-authored-by: Peter C Kroon <pckroon@users.noreply.github.com>
@fgrunewald fgrunewald requested a review from pckroon December 3, 2024 13:24
@pckroon pckroon merged commit 4d1c8ca into master Dec 3, 2024
5 of 6 checks passed
@pckroon pckroon deleted the ez_multi branch December 3, 2024 15:12
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