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

Moved torsion exports to ResidueBase to make them available for handles and views.

parent d2c9add5
No related branches found
No related tags found
No related merge requests found
...@@ -170,6 +170,9 @@ void export_Residue() ...@@ -170,6 +170,9 @@ void export_Residue()
.def("GetPhiTorsion", &ResidueBase::GetPhiTorsion) .def("GetPhiTorsion", &ResidueBase::GetPhiTorsion)
.def("GetPsiTorsion", &ResidueBase::GetPsiTorsion) .def("GetPsiTorsion", &ResidueBase::GetPsiTorsion)
.def("GetOmegaTorsion", &ResidueBase::GetOmegaTorsion) .def("GetOmegaTorsion", &ResidueBase::GetOmegaTorsion)
.add_property("phi_torsion", &ResidueBase::GetPhiTorsion)
.add_property("psi_torsion", &ResidueBase::GetPsiTorsion)
.add_property("omega_torsion", &ResidueBase::GetOmegaTorsion)
.def(self_ns::str(self)) .def(self_ns::str(self))
.def("GetOneLetterCode", &ResidueBase::GetOneLetterCode) .def("GetOneLetterCode", &ResidueBase::GetOneLetterCode)
.def("SetOneLetterCode", &ResidueBase::SetOneLetterCode) .def("SetOneLetterCode", &ResidueBase::SetOneLetterCode)
...@@ -211,7 +214,7 @@ void export_Residue() ...@@ -211,7 +214,7 @@ void export_Residue()
make_function(&ResidueBase::GetName, make_function(&ResidueBase::GetName,
return_value_policy<copy_const_reference>())) return_value_policy<copy_const_reference>()))
.def("IsValid", &ResidueBase::IsValid) .def("IsValid", &ResidueBase::IsValid)
.add_property("valid", &ResidueBase::IsValid) .add_property("valid", &ResidueBase::IsValid)
; ;
generic_prop_def<ResidueBase>(residue_base); generic_prop_def<ResidueBase>(residue_base);
...@@ -251,9 +254,6 @@ void export_Residue() ...@@ -251,9 +254,6 @@ void export_Residue()
.add_property("center_of_mass", &ResidueHandle::GetCenterOfMass) .add_property("center_of_mass", &ResidueHandle::GetCenterOfMass)
.add_property("center_of_atoms", &ResidueHandle::GetCenterOfAtoms) .add_property("center_of_atoms", &ResidueHandle::GetCenterOfAtoms)
.add_property("geometric_center", geom_center<ResidueHandle>) .add_property("geometric_center", geom_center<ResidueHandle>)
.add_property("phi_torsion", &ResidueHandle::GetPhiTorsion)
.add_property("psi_torsion", &ResidueHandle::GetPsiTorsion)
.add_property("omega_torsion", &ResidueHandle::GetOmegaTorsion)
.def("GetGeometricStart", geom_start<ResidueHandle>) .def("GetGeometricStart", geom_start<ResidueHandle>)
.def("GetGeometricEnd", geom_end<ResidueHandle>) .def("GetGeometricEnd", geom_end<ResidueHandle>)
.def(self==self) .def(self==self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment