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
Patch/sgrouplayout #173
Patch/sgrouplayout #173
Conversation
…, the 'fully' method means for atoms we skip the symbol generation.
Added one more commit for handling the multiple group sgroups. Tricky to lay out as need to match substructures. |
…his should change text alignment as it would for abbreviations.
Spotted something whilst writing latest blog post - so tagged on one more commit. |
@@ -117,4 +125,13 @@ public void testPseudoAtomLabels() throws Exception { | |||
} | |||
} | |||
|
|||
@Test public void positionalVariation() throws Exception { | |||
MDLV3000Reader reader = new MDLV3000Reader(getClass().getResourceAsStream("multicenterBond.mol")); | |||
IAtomContainer container = reader.read(new org.openscience.cdk.AtomContainer(0,0,0,0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I always get warnings that the reader is not closed... do you have any idea if doing or not has an effect on how fast the tests run? (just wondering...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No I should have closed it there. The main problem is you can only have a certain number of file pointers open on the OS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI - just added a hotfix before release that resolves it.
I think probably ready for a release after this patch. This patch primarily focusses on layout of Sgroup brackets, positional variation, and attachment points.
As noted by the IUPAC guide attachment points should be drawn as crossing wavy line.
Testable example:
SMILES:
c1ccccc1.C*.C* |$;;;;;;;_AP1;;R5$,m:6:0.1.2.3.4.5,m:8:0.1.2.3.4.5|
Full Code:
Still more to do