Skip to content

Commit

Permalink
clear the conflicts between charges and reactions
Browse files Browse the repository at this point in the history
git-svn-id: https://cdk.svn.sourceforge.net/svnroot/cdk/trunk/cdk@6214 eb4e18e3-b210-0410-a6ab-dec725e4b171
  • Loading branch information
miguelrojasch committed May 10, 2006
1 parent ea81af7 commit 3bdf862
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.xml
Expand Up @@ -592,16 +592,16 @@
<antcall target="compile-module"><param name="module" value="pdb"/></antcall>
<antcall target="compile-module"><param name="module" value="valencycheck"/></antcall>
<antcall target="compile-module"><param name="module" value="extra"/></antcall>
<antcall target="compile-module"><param name="module" value="charges"/></antcall>
<antcall target="compile-module"><param name="module" value="smiles"/></antcall>
<antcall target="compile-module"><param name="module" value="libio-cml"/></antcall>
<antcall target="compile-module"><param name="module" value="pdb-cml"/></antcall>
<antcall target="compile-module"><param name="module" value="reaction"/></antcall>
<antcall target="compile-module"><param name="module" value="charges"/></antcall>
<antcall target="compile-module"><param name="module" value="qsar"/></antcall>
<antcall target="compile-module"><param name="module" value="qsar-cml"/></antcall>
<antcall target="compile-module"><param name="module" value="qsar-pdb"/></antcall>
<antcall target="compile-module"><param name="module" value="forcefield"/></antcall>
<antcall target="compile-module"><param name="module" value="builder3d"/></antcall>
<antcall target="compile-module"><param name="module" value="reaction"/></antcall>
<antcall target="compile-module"><param name="module" value="svg"/></antcall>
<antcall target="compile-module"><param name="module" value="experimental"/></antcall>
<antcall target="compile-module"><param name="module" value="applications"/></antcall>
Expand Down
1 change: 1 addition & 0 deletions src/META-INF/charges.cdkdepends
Expand Up @@ -4,3 +4,4 @@ cdk-extra.jar
cdk-interfaces.jar
cdk-io.jar
cdk-standard.jar
cdk-reaction.jar
1 change: 1 addition & 0 deletions src/META-INF/qsar.cdkdepends
Expand Up @@ -4,4 +4,5 @@ cdk-core.jar
cdk-standard.jar
cdk-valencycheck.jar
cdk-extra.jar
cdk-reaction.jar
cdk-charges.jar
Expand Up @@ -225,7 +225,7 @@ public void testGetStructures2() throws ClassNotFoundException, CDKException, ja
* @return The test suite
*/
public void testFlagActiveCenter1() throws ClassNotFoundException, CDKException, java.lang.Exception {
Molecule molecule = (new SmilesParser()).parseSmiles("CC=C[C+]-C-C=C-[C+]");
Molecule molecule = (new SmilesParser()).parseSmiles("CC=C[C+]-C-C=C-C");
HydrogenAdder adder = new HydrogenAdder();
adder.addImplicitHydrogensToSatisfyValency(molecule);

Expand All @@ -240,7 +240,7 @@ public void testFlagActiveCenter1() throws ClassNotFoundException, CDKException,

Assert.assertEquals(2,setOfMolecules.getAtomContainerCount());

Molecule molecule2 = (new SmilesParser()).parseSmiles("C-[C+]-C=C-C-C=C-[C+]");
Molecule molecule2 = (new SmilesParser()).parseSmiles("C-[C+]-C=C-C-C=C-C");
adder.addImplicitHydrogensToSatisfyValency(molecule2);

QueryAtomContainer qAC = QueryAtomContainerCreator.createSymbolAndChargeQueryContainer(molecule2);
Expand Down
Expand Up @@ -41,9 +41,9 @@
* <p>If the reactive center is not localized then the reaction process will
* try to find automatically the posible reactive center.</p>
*
* @author Miguel Rojas
* @cdk.created 2006-5-05
* @cdk.module reaction
* @author Miguel Rojas
* @cdk.created 2006-5-05
* @cdk.module reaction
*
* @see DisplacementChargeFromAcceptorReaction
* @see DisplacementChargeFromDonorReaction
Expand Down Expand Up @@ -103,7 +103,7 @@ public StructureResonanceGenerator(
* @return The different resonance structures
*/
public ISetOfAtomContainers getStructures(IAtomContainer atomContainer) {
ISetOfAtomContainers setOfAC = DefaultChemObjectBuilder.getInstance().newSetOfAtomContainers();
ISetOfAtomContainers setOfAC = atomContainer.getBuilder().newSetOfAtomContainers();

ISetOfAtomContainers set = getAllStructures(atomContainer);
/*analize sum of bonds */
Expand Down

0 comments on commit 3bdf862

Please sign in to comment.