Skip to content

Unexpected behavior of do_enhanced_stereo_sss? #7190

Discussion options

You must be logged in to vote

I'd characterize this as a bug. Here's what's happening: the molecule equality code goes through a bunch of increasingly expensive checks to detect that the two molecules are different. The last of those steps is to generate a SMILES or CXSMILES (in the case of enhanced stereo) for each and compare them. Since CXSMILES includes coordinates by default, this is going to result in molecules with different atomic positions comparing unequal.

In general: @= is there because we had to provide a molecular equality operator, but I think it's generally better to do molecular comparison with SMILES (or CXSMILES if you want enhanced stereo) if you can.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@someonetookmyname
Comment options

@someonetookmyname
Comment options

@greglandrum
Comment options

Answer selected by someonetookmyname
@greglandrum
Comment options

@someonetookmyname
Comment options

@someonetookmyname
Comment options

@someonetookmyname
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants