Navigation Menu

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

Added to CMLCoreModule capability to read atomParity elements #37

Closed
wants to merge 4 commits into from

Conversation

AndyHowlettGitHub
Copy link
Contributor

Corrected spelling error. Formatting changes.

@egonw
Copy link
Member

egonw commented Aug 1, 2014

I left a few comments with the commit. It's a great start, thanks!

counts set (needed for SMILES output). Tidied code. Formatting changes.
@AndyHowlettGitHub
Copy link
Contributor Author

Made 2 other small changes, please check!

@AndyHowlettGitHub
Copy link
Contributor Author

Also you're probably aware but the unit tests don't all run on Windows, some of them have line ending issues.

@johnmay
Copy link
Member

johnmay commented Aug 8, 2014

Actually no, but I suspected that might the case. Have you got a list?

@johnmay
Copy link
Member

johnmay commented Aug 9, 2014

Looks good, I'm happy with all except the hydrogens. Maybe I'm missing something but isn't the problem here that the input CML didn't specify the count. For example this would give correct behaviour with the existing code:

<atom id="a1" symbol="H" hydrogens="0"/>

If it's documented in the CML spec that hydrogens have 0 implicit hydrogens by default it's okay. Otherwise, this should not be done automatically, there are other methods to set the hydrogen count to allow valid input for SMILES.

Also watch out for formatting (whitespace) changes, these are best in a separate commit otherwise they make it difficult to see what changed.

@AndyHowlettGitHub
Copy link
Contributor Author

org.openscience.cdk.cdk-io
org.openscience.cdk.modulesuites.MioTests
org.openscience.cdk.coverage.IoCoverageTest
java.lang.AssertionError: File not found in the classpath: io.javafiles

java.lang.AssertionError: File not found in the classpath: io.javafiles

org.openscience.cdk.io.MDLV2000WriterTest
testSingleDoubletRadical(org.openscience.cdk.io.MDLV2000WriterTest)
java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 2"
but: was "M RAD 1 2 2\r"

java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 2"
but: was "M RAD 1 2 2\r"

testMultipleRadicals(org.openscience.cdk.io.MDLV2000WriterTest)
java.lang.AssertionError: incorrect radical output on line 22
Expected: is "M RAD 8 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2"
but: was "M RAD 8 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2\r"

java.lang.AssertionError: incorrect radical output on line 22
Expected: is "M RAD 8 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2"
but: was "M RAD 8 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2\r"

testSingleSingletRadical(org.openscience.cdk.io.MDLV2000WriterTest)
java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 1"
but: was "M RAD 1 2 1\r"

java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 1"
but: was "M RAD 1 2 1\r"

testSingleTripletRadical(org.openscience.cdk.io.MDLV2000WriterTest)
java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 1"
but: was "M RAD 1 2 1\r"

java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 1"
but: was "M RAD 1 2 1\r"

@AndyHowlettGitHub
Copy link
Contributor Author

Unit test failures. Looks like the first two might be more serious.

@johnmay
Copy link
Member

johnmay commented Aug 11, 2014

Cheers,

J

On Aug 11, 2014, at 2:39 PM, AndyHowlettGitHub notifications@github.com wrote:

org.openscience.cdk.cdk-io
org.openscience.cdk.modulesuites.MioTests
org.openscience.cdk.coverage.IoCoverageTest
java.lang.AssertionError: File not found in the classpath: io.javafiles

java.lang.AssertionError: File not found in the classpath: io.javafiles

org.openscience.cdk.io.MDLV2000WriterTest
testSingleDoubletRadical(org.openscience.cdk.io.MDLV2000WriterTest)
java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 2"
but: was "M RAD 1 2 2\r"

java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 2"
but: was "M RAD 1 2 2\r"

testMultipleRadicals(org.openscience.cdk.io.MDLV2000WriterTest)
java.lang.AssertionError: incorrect radical output on line 22
Expected: is "M RAD 8 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2"
but: was "M RAD 8 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2\r"

java.lang.AssertionError: incorrect radical output on line 22
Expected: is "M RAD 8 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2"
but: was "M RAD 8 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2\r"

testSingleSingletRadical(org.openscience.cdk.io.MDLV2000WriterTest)
java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 1"
but: was "M RAD 1 2 1\r"

java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 1"
but: was "M RAD 1 2 1\r"

testSingleTripletRadical(org.openscience.cdk.io.MDLV2000WriterTest)
java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 1"
but: was "M RAD 1 2 1\r"

java.lang.AssertionError: incorrect radical output
Expected: is "M RAD 1 2 1"
but: was "M RAD 1 2 1\r"


Reply to this email directly or view it on GitHub.

@johnmay
Copy link
Member

johnmay commented Aug 11, 2014

Nope the first two are old coverage tests. They're disabled in pom but won't be in the IDE.

supposed to be present in CML, and should not be inferred.
@johnmay
Copy link
Member

johnmay commented Aug 11, 2014

Applied and pushed. Thanks.

@johnmay johnmay closed this Aug 11, 2014
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

3 participants