Closed wojdyr closed 9 years ago
we've patched it for ccp4 build
diff --git a/lidia-core/rdkit-interface.cc b/lidia-core/rdkit-interface.cc
index 665ed81..c4caa5c 100644
--- a/lidia-core/rdkit-interface.cc
+++ b/lidia-core/rdkit-interface.cc
@@ -180,7 +180,7 @@ coot::rdkit_mol(mmdb::Residue *residue_p,
coot::util::capitalise(coot::util::remove_leading_spaces(at->element));
int atomic_number = tbl->getAtomicNumber(ele_capped);
rdkit_at->setAtomicNum(atomic_number);
- rdkit_at->setMass(tbl->getAtomicWeight(atomic_number));
+ rdkit_at->setIsotope(0);
rdkit_at->setProp("name", atom_name);
// set the valence from they type energy. Abstract?
@@ -601,7 +601,7 @@ coot::rdkit_mol(const coot::dictionary_residue_restraints_t &r) {
coot::util::capitalise(coot::util::remove_leading_spaces(r.atom_info[iat].type_symbol));
int atomic_number = tbl->getAtomicNumber(ele_capped);
at->setAtomicNum(atomic_number);
- at->setMass(tbl->getAtomicWeight(atomic_number));
+ at->setIsotope(0);
at->setProp("name", r.atom_info[iat].atom_id);
// set the chirality (if this atom is chiral).
OK, noted (Bill Scott informed me of this problem some time ago). Why don't you see a similar problem in lbg/libg.cc? Or do you?
yes, the patch above is not complete, i've changed it also in lbg.cc
Fixed.
When building with RDKit 2015_03_1 I get:
from RDKit changelog: