diff --git a/modules/mol/base/pymod/export_residue.cc b/modules/mol/base/pymod/export_residue.cc index 127de00e2b5f62e3eabe6b9babe34ce113a6fa03..c4c43e5d89ca06505a65a7b39035692d7150681e 100644 --- a/modules/mol/base/pymod/export_residue.cc +++ b/modules/mol/base/pymod/export_residue.cc @@ -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) diff --git a/modules/mol/base/pymod/export_residue_view.cc b/modules/mol/base/pymod/export_residue_view.cc index 699dbe34ea9e54b0ecaf168bc57e2d34b2c244a9..89c6eddc428833b3dfe3d019b109b0e558c95ed7 100644 --- a/modules/mol/base/pymod/export_residue_view.cc +++ b/modules/mol/base/pymod/export_residue_view.cc @@ -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)