diff --git a/modules/mol/base/pymod/export_chain.cc b/modules/mol/base/pymod/export_chain.cc index 1e2e59285e209914f56789b6545ab195bd8af489..ad473535b85d64e00e3a37bb32e08acaada3443c 100644 --- a/modules/mol/base/pymod/export_chain.cc +++ b/modules/mol/base/pymod/export_chain.cc @@ -95,6 +95,8 @@ void export_Chain() .add_property("bounds", &ChainHandle::GetBounds) .def("GetGeometricStart", geom_start<ChainHandle>) .def("GetGeometricEnd", geom_end<ChainHandle>) + .def(self==self) + .def(self!=self) ; class_<ChainHandleList>("ChainHandleList", no_init) diff --git a/modules/mol/base/pymod/export_chain_view.cc b/modules/mol/base/pymod/export_chain_view.cc index 471b592a13421b259427e56a8d0ce4939f45bed1..117e4ce837fba5e8111d1ff0ebf473559b1340f9 100644 --- a/modules/mol/base/pymod/export_chain_view.cc +++ b/modules/mol/base/pymod/export_chain_view.cc @@ -104,6 +104,8 @@ void export_ChainView() .def("GetGeometricEnd", geom_end<ChainView>) .def("GetBounds", &ChainView::GetBounds) .add_property("bounds", &ChainView::GetBounds) + .def(self==self) + .def(self!=self) ;