From 1f6142b8260a26c1df45093580ba9b37049463b4 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 23 Sep 2024 15:49:26 +0200 Subject: [PATCH] minor improvements --- .../com/actelion/research/chem/AromaticityResolver.java | 8 +++++++- .../chem/IDCodeParserWithoutCoordinateInvention.java | 3 +++ .../chem/conf/MolecularFlexibilityCalculator.java | 2 +- .../com/actelion/research/chem/shredder/Fragment3D.java | 7 ++++--- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/actelion/research/chem/AromaticityResolver.java b/src/main/java/com/actelion/research/chem/AromaticityResolver.java index ca0db78c..12775ea6 100644 --- a/src/main/java/com/actelion/research/chem/AromaticityResolver.java +++ b/src/main/java/com/actelion/research/chem/AromaticityResolver.java @@ -168,7 +168,13 @@ public boolean locateDelocalizedDoubleBonds(boolean[] isAromaticBond, boolean ma } } - if (!bondsPromoted) { + + if (bondsPromoted) { + promoteObviousBonds(); + continue; + } + + if (!bondsPromoted) { // find and promote one aromatic bond // (should never happen, but to prevent an endless loop nonetheless) for (int bond=0; bond { - private String mIDCode,mIDCoords; - private TorsionDescriptor mTorsions; - private int[] mExitAtoms; + private final String mIDCode; + private String mIDCoords; + private final TorsionDescriptor mTorsions; + private final int[] mExitAtoms; public Fragment3D(String idcode, String coords, TorsionDescriptor td, int[] exitAtoms) { this.mIDCode = idcode;