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

Bugfix in the chirality handling of chemical reactions #410

Merged
merged 1 commit into from
Jan 14, 2015

Conversation

NadineSchneider
Copy link
Contributor

Enumeration of reactions that introduce new chirality centers in the products failed. This commit fixes that behavior.


void updateProductsStereochem(ChemicalReaction *rxn)
{
std::map<int,Atom::ChiralType> reactantMapping = getMappingNumAtomIdxMapReactants(rxn);
Copy link
Member

Choose a reason for hiding this comment

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

Minor efficiency thing: wouldn't it make more sense to have getMappingNumAtomIdxMapReactants() take a reference to the std::map as an argument and thus save yourself the copy that's done by returning it?

greglandrum added a commit that referenced this pull request Jan 14, 2015
Bugfix in the chirality handling of chemical reactions
@greglandrum greglandrum merged commit 0643ae7 into rdkit:master Jan 14, 2015
@greglandrum greglandrum added this to the 2015_03_1 milestone Mar 21, 2015
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