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

Fix AtomContainer2.removeAtom(IAtom) #394

Merged
merged 3 commits into from Dec 7, 2017

Conversation

kazuyaujihara
Copy link
Contributor

The method can break lonePairs and singleElectrons array.

@johnmay
Copy link
Member

johnmay commented Dec 6, 2017

Looks good, just to confirm as the diff makes it hard to see but I miss bracketed the remove right? and use newNumBonds instead of newNumLonePairs etc in the linear filtering?

@kazuyaujihara
Copy link
Contributor Author

kazuyaujihara commented Dec 6, 2017

Yes.
Current implementation checks the array multiple times when molecular has multiple lone pairs or single electrons, but I think it is OK as a typical length of the array is small.

@johnmay johnmay merged commit 1165e56 into cdk:master Dec 7, 2017
@kazuyaujihara kazuyaujihara deleted the patch/removeAtom_IAtom branch December 14, 2017 03:06
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.

None yet

2 participants