Skip to content
Snippets Groups Projects
Commit fe4da76e authored by Tobias Schmidt's avatar Tobias Schmidt
Browse files

add pyton export for residue

parent 73379268
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,7 @@ void export_Residue()
class_<ResidueHandle, bases<ResidueBase> >("ResidueHandle", init<>())
.def("GetChain",&ResidueHandle::GetChain)
.add_property("chain", &ResidueHandle::GetChain)
.def("GetEntity",&ResidueHandle::GetEntity)
.add_property("entity", &ResidueHandle::GetEntity)
.def("GetAtomList", &ResidueHandle::GetAtomList)
.def("GetIndex", &ResidueHandle::GetIndex)
......
......@@ -54,6 +54,9 @@ void export_ResidueView()
class_<ResidueView, bases<ResidueBase> >("ResidueView", init<>())
.def("GetChain",&ResidueView::GetChain)
.add_property("chain", &ResidueView::GetChain)
.def("GetEntity", &ResidueView::GetEntity)
.add_property("entity", &ResidueView::GetEntity)
.def("GetAtomList", &ResidueView::GetAtomList,
return_value_policy<copy_const_reference>())
.def("GetAtomCount", &ResidueView::GetAtomCount)
......@@ -66,8 +69,6 @@ void export_ResidueView()
.def("FindAtom", handle_find_atom, args("atom_handle"))
.def("IsAtomIncluded", &ResidueView::IsAtomIncluded, args("atom_handle"))
.def("GetIndex", &ResidueView::GetIndex)
.add_property("chain", &ResidueView::GetChain)
.add_property("entity", &ResidueView::GetEntity)
.add_property("index", &ResidueView::GetIndex)
.def("RemoveAtoms", &ResidueView::RemoveAtom)
.def("IsValid", &ResidueView::IsValid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment