Skip to content

Commit

Permalink
ensure the avalon tests pass on windows (note: this does require chan…
Browse files Browse the repository at this point in the history
…ges to the avalon toolkit source)
  • Loading branch information
greglandrum committed May 1, 2014
1 parent 88b3be8 commit b8586a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions External/AvalonTools/AvalonTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ namespace AvalonTools {
unsigned int set2DCoords(ROMol &mol,bool clearConfs){
struct reaccs_molecule_t *mp=molToReaccs(mol);
struct reaccs_molecule_t *mp2=reaccsGetCoords(mp);
//std::cerr<<"----\n"<<MolToMolStr(mp2)<<"--------\n";

TEST_ASSERT(mp2->n_atoms==mol.getNumAtoms());

RDKit::Conformer *conf = new RDKit::Conformer(mol.getNumAtoms());
Expand Down Expand Up @@ -201,10 +199,10 @@ namespace AvalonTools {
std::string res="";
if(mp){
struct reaccs_molecule_t *mp2=reaccsGetCoords(mp);
FreeMolecule(mp);
Utils::LocaleSwitcher ls;
char *molB = MolToMolStr(mp2);
res=molB;
FreeMolecule(mp);
FreeMolecule(mp2);
MyFree(molB);
}
Expand Down
3 changes: 1 addition & 2 deletions External/AvalonTools/test1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ void test1(){
void test2(){
BOOST_LOG(rdInfoLog) << "testing coordinate generation" << std::endl;

#if 0
#if 1
{
RWMol *m = SmilesToMol("c1cccnc1");
TEST_ASSERT(m);

unsigned int confId=AvalonTools::set2DCoords(*m);
TEST_ASSERT(m->getNumConformers()==1);
TEST_ASSERT(confId==0);
Expand Down

0 comments on commit b8586a7

Please sign in to comment.