mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
Atoms bonded to metal atoms should always have their H counts explicit in SMILES (#8318)
* refactor the code to determine whether or not an atom is in brackets * move the definition of isMetal to QueryOps * atoms bound to metals in SMILES should always be in square brackets Implementation and some test updates needs confirmation that all of tests run * basic tests pass * java tests pass * update js tests * doc updates * Update Code/GraphMol/catch_graphmol.cpp Co-authored-by: Ricardo Rodriguez <ricrogz@users.noreply.github.com> * Update Code/GraphMol/SmilesParse/test.cpp Co-authored-by: Ricardo Rodriguez <ricrogz@users.noreply.github.com> * finish fixing tests * bump yaehmop version to allow compilation to work --------- Co-authored-by: Ricardo Rodriguez <ricrogz@users.noreply.github.com>
This commit is contained in:
@@ -696,12 +696,12 @@ public class Chemv2Tests extends GraphMolTest {
|
||||
RDKFuncs.setAllowNontetrahedralChirality(true);
|
||||
m = RWMol.MolFromMolBlock(ctab);
|
||||
assertTrue(m != null);
|
||||
assertEquals(m.MolToSmiles(), "F[Pt@SP3](F)(Cl)Cl");
|
||||
assertEquals(m.MolToSmiles(), "[F][Pt@SP3]([F])([Cl])[Cl]");
|
||||
m.delete();
|
||||
RDKFuncs.setAllowNontetrahedralChirality(false);
|
||||
m = RWMol.MolFromMolBlock(ctab);
|
||||
assertTrue(m != null);
|
||||
assertEquals(m.MolToSmiles(), "F[Pt](F)(Cl)Cl");
|
||||
assertEquals(m.MolToSmiles(), "[F][Pt]([F])([Cl])[Cl]");
|
||||
m.delete();
|
||||
RDKFuncs.setAllowNontetrahedralChirality(allowNonTetrahedralChirality);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user