Skip to content
Snippets Groups Projects
Commit ec18f4bb authored by Valerio Mariani's avatar Valerio Mariani
Browse files

Fixes severe bugs in loading models for lddt

The feasibility check flag in the profile was ignored until now
parent 3643b0be
Branches
Tags
No related merge requests found
......@@ -55,9 +55,10 @@ EntityHandle load(const String& file, const IOProfile& profile)
EntityHandle ent=CreateEntity();
reader.Import(ent);
conop::Conopology& conop_inst=conop::Conopology::Instance();
conop_inst.GetBuilder()->SetBondFeasibilityCheck(profile.bond_feasibility_check);
conop_inst.ConnectAll(conop_inst.GetBuilder(), ent);
if (ent.GetChainList().size()!=1) {
std::cout << "WARNING: File " << file << "has more than one chain" << std::endl;
std::cout << "WARNING: File " << file << " has more than one chain" << std::endl;
}
return ent;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment