Skip to content
Snippets Groups Projects
Commit 2ce784f1 authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

Fixed occupancy for atoms taken from templates (set all to 1).

parent e0a4dbaf
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,7 @@ bool CopyIdentical(ResidueView src_res, ResidueHandle dst_res, XCSEditor& edi, ...@@ -219,7 +219,7 @@ bool CopyIdentical(ResidueView src_res, ResidueHandle dst_res, XCSEditor& edi,
continue; continue;
} }
edi.InsertAtom(dst_res, a->GetName(), a->GetPos(), a->GetElement(), edi.InsertAtom(dst_res, a->GetName(), a->GetPos(), a->GetElement(),
a->GetOccupancy(), a->GetBFactor()); 1.0, a->GetBFactor());
} }
return true; return true;
} }
...@@ -241,10 +241,10 @@ bool CopyMSE(ResidueView src_res, ResidueHandle dst_res, XCSEditor& edi, ...@@ -241,10 +241,10 @@ bool CopyMSE(ResidueView src_res, ResidueHandle dst_res, XCSEditor& edi,
} }
if (a->GetName()=="SE") { if (a->GetName()=="SE") {
edi.InsertAtom(dst_res, "SD", a->GetPos(), "S", edi.InsertAtom(dst_res, "SD", a->GetPos(), "S",
a->GetOccupancy(), a->GetBFactor()); 1.0, a->GetBFactor());
} else { } else {
edi.InsertAtom(dst_res, a->GetName(), a->GetPos(), a->GetElement(), edi.InsertAtom(dst_res, a->GetName(), a->GetPos(), a->GetElement(),
a->GetOccupancy(), a->GetBFactor()); 1.0, a->GetBFactor());
} }
} }
return true; return true;
...@@ -319,7 +319,7 @@ bool CopyModified(ResidueView src_res, ResidueHandle dst_res, ...@@ -319,7 +319,7 @@ bool CopyModified(ResidueView src_res, ResidueHandle dst_res,
continue; continue;
} }
edi.InsertAtom(dst_res, a->GetName(), a->GetPos(), a->GetElement(), edi.InsertAtom(dst_res, a->GetName(), a->GetPos(), a->GetElement(),
a->GetOccupancy(), a->GetBFactor()); 1.0, a->GetBFactor());
} }
return true; return true;
} }
...@@ -342,7 +342,7 @@ bool CopyNonConserved(ResidueView src_res, ResidueHandle dst_res, ...@@ -342,7 +342,7 @@ bool CopyNonConserved(ResidueView src_res, ResidueHandle dst_res,
continue; continue;
} }
edi.InsertAtom(dst_res, a->GetName(), a->GetPos(), a->GetElement(), edi.InsertAtom(dst_res, a->GetName(), a->GetPos(), a->GetElement(),
a->GetOccupancy(), a->GetBFactor()); 1.0, a->GetBFactor());
} }
} }
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment